groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-7924) groovyc fails with NPE for dynamic method/property use on super
Date Thu, 01 Sep 2016 22:43:20 GMT

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

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

Github user asfgit closed the pull request at:

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


> groovyc fails with NPE for dynamic method/property use on super
> ---------------------------------------------------------------
>
>                 Key: GROOVY-7924
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7924
>             Project: Groovy
>          Issue Type: Bug
>          Components: class generator
>    Affects Versions: 2.4.7
>         Environment: OSX, Groovy-2.4.7, Gradle-3.0
>            Reporter: Jason Maher
>            Priority: Minor
>              Labels: groovyc
>         Attachments: class-generator-error.txt
>
>
> Compilation of any class that makes a dynamic call to super will fail with an NPE. Example:
> {code}
> class TargetClass {
>     def dynamicSuperInvoke(String name) {
>         super."$name"()
>     }
>     def dynamicSuperAccess(String name) {
>         super."$name"
>     }
> }
> {code}
> Example project: https://github.com/jasoma/groovyc-npe-repro



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message