You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/05/05 23:19:00 UTC
[jira] [Comment Edited] (GROOVY-9005) SomeClass.groovy: -1: Access
to java.lang.Object#this is forbidden @ line -1, column -1
[ https://issues.apache.org/jira/browse/GROOVY-9005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16832435#comment-16832435 ]
Paul King edited comment on GROOVY-9005 at 5/5/19 11:18 PM:
------------------------------------------------------------
I created a simple gradle build with the three supplied classes in the attached zip and I could successfully invoke the compileGroovy task and it produced the class files for all classes. I was using groovy 2.5.6. [~drosenbauer] perhaps you can describe a bit more how you compiled the code?
was (Author: paulk):
I created a simple gradle build with the three supplied classes in the attached zip and I could successfully invoke the compileGroovy task and it produced the class files for all classes. I was using groovy 2.5.6.
> SomeClass.groovy: -1: Access to java.lang.Object#this is forbidden @ line -1, column -1
> ---------------------------------------------------------------------------------------
>
> Key: GROOVY-9005
> URL: https://issues.apache.org/jira/browse/GROOVY-9005
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 2.5.6
> Reporter: Devin Rosenbauer
> Priority: Major
> Attachments: GROOVY-9005.zip
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)