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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.5.8, 3.0.0-rc-1
    • 2.5.9, 3.0.0-rc-2
    • bytecode, Compiler
    • 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. AgentTester.class
          8 kB
          Jochen Eddelbuettel
        2. ErrorDetails.txt
          3 kB
          Jochen Eddelbuettel

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment