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

Dynamic Groovy code in Gradle doesn't compile because of $getLookup() method is not static

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      Output:

      /Users/lptr/Workspace/gradle/gradle/subprojects/internal-integ-testing/build/tmp/compileGroovy/groovy-java-stubs/org/gradle/test/fixtures/server/sftp/SFTPServer.java:164: error: $getLookup() in SFTPServer.SftpExpectOneOpen cannot override $getLookup() in SftpExpectOnePath
      public  java.lang.invoke.MethodHandles.Lookup $getLookup() { return (java.lang.invoke.MethodHandles.Lookup)null;}
                                                    ^
        overridden method is static
      /Users/lptr/Workspace/gradle/gradle/subprojects/internal-integ-testing/build/tmp/compileGroovy/groovy-java-stubs/org/gradle/test/fixtures/server/sftp/SFTPServer.java:178: error: $getLookup() in SFTPServer.SftpExpectOneHandle cannot override $getLookup() in SftpExpectOnePath
      public  java.lang.invoke.MethodHandles.Lookup $getLookup() { return (java.lang.invoke.MethodHandles.Lookup)null;}
                                                    ^
        overridden method is static
      

       See the attached SFTPServer.java for the generated stubs.

      Attachments

        1. SFTPServer.java
          16 kB
          Lóránt Pintér

        Activity

          People

            paulk Paul King
            lptr Lóránt Pintér
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h