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

@CompileStatic on call of static method on interface (Java 8): VerifyError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.5.8, 3.0.0-rc-1
    • Fix Version/s: 2.5.9, 3.0.0-rc-2
    • Component/s: bytecode, Compiler
    • Labels:
    • Environment:
      Oracle Java 1.8.0_112, IDEA CE 2019.1

      Description

      This is the rogue line

      def cfg = IDx4SessionPoolConfiguration.builder()

      Changing this to something more normal like

      def cfg = new ConfigurationBuilder()

      fixes the problems. So does not compiling with @CompileStatic or running the code in a VM with -noverify option. The decompiled code looks jolly good in jd-gui.

      The problem does not exists in 2.4.15-indy

        Attachments

        1. ErrorDetails.txt
          3 kB
          Jochen Eddelbuettel
        2. AgentTester.class
          8 kB
          Jochen Eddelbuettel

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eddelplus Jochen Eddelbuettel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: