[jira] [Commented] (GROOVY-8233) Java stub generation incorrect for static properties of traits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (GROOVY-8233) Java stub generation incorrect for static properties of traits

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GROOVY-8233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16538469#comment-16538469 ]

ASF GitHub Bot commented on GROOVY-8233:
----------------------------------------

Github user paulk-asert closed the pull request at:

    https://github.com/apache/groovy/pull/767


> Java stub generation incorrect for static properties of traits
> --------------------------------------------------------------
>
>                 Key: GROOVY-8233
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8233
>             Project: Groovy
>          Issue Type: Bug
>          Components: Stub generator / Joint compiler
>    Affects Versions: 2.4.11
>            Reporter: Graeme Rocher
>            Priority: Major
>         Attachments: domain-plugins.zip
>
>
> Groovy generates incorrect stubs for static properties of traits resulting in compilation errors such as:
> {code}
> /Users/graemerocher/grails/apps/domain-plugins/app/build/tmp/compileGroovy/groovy-java-stubs/bug/DomainA.java:10: error: org_grails_datastore_mapping_dirty_checking_DirtyCheckable__DIRTY_CLASS_MARKER$get() in DomainParent cannot implement org_grails_datastore_mapping_dirty_checking_DirtyCheckable__DIRTY_CLASS_MARKER$get() in DirtyCheckable$Trait$FieldHelper
> public class DomainA
>        ^
>   overriding method is static
> 1 error
> startup failed:
> Compilation failed; see the compiler error output for details.
> 1 error
> {code}
> Attached is an example. Simply run `./gradlew compileGroovy`



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)