Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8142

Static compiler produces different bytecode for same sources

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.10
    • Fix Version/s: 2.4.11
    • Component/s: Compiler
    • Labels:
      None

      Description

      When using @CompileStatic the Groovy compiler produces different bytecode output for the same set of sources. This seems to be the issue when calling a method on a type with multiple super-interfaces which declare the same method. In this case, the bytecode produced by the compiler will reference one of these interfaces randomly.

      I have provided a test project which reproduces this issue:

      https://github.com/mark-vieira/groovy-compiler-bug

        Attachments

          Activity

            People

            • Assignee:
              melix Cédric Champeau
              Reporter:
              markvieira Mark Vieira
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: