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

SomeClass.groovy: -1: Access to java.lang.Object#this is forbidden @ line -1, column -1

    XMLWordPrintableJSON

Details

    Description

      I'm receiving the above error when attempting to compile certain classes that have @CompileStatic on either the class or a method within a dynamically compiled class. The project is a cross-compiled Java / Groovy project with all classes of both types defined in the "groovy" structure. The error can be reproduced when a Groovy class extends a Java class which extends a Groovy class, then a method in the Java class is called from an inner class of the Groovy class.

      The simplest case I can derive to reproduce the failure is attached.

      A is the class which fails to compile. A1 and A2 are the Java and Groovy superclasses, respectively.

      Attachments

        1. GROOVY-9005.zip
          0.9 kB
          Devin Rosenbauer

        Issue Links

          Activity

            People

              Unassigned Unassigned
              drosenbauer Devin Rosenbauer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: