You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Jason Maher (JIRA)" <ji...@apache.org> on 2016/09/01 05:33:20 UTC

[jira] [Updated] (GROOVY-7924) groovyc fails with NPE for dynamic method/property use on super

     [ https://issues.apache.org/jira/browse/GROOVY-7924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Maher updated GROOVY-7924:
--------------------------------
    Attachment: class-generator-error.txt

Exception details from groovyc

> 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)