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

Static compiler produces different bytecode for same sources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.10
    • 2.4.11
    • Compiler
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: