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 2017/02/01 23:19:00 UTC
[jira] [Closed] (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 ]
Paul King closed GROOVY-7924.
-----------------------------
> 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
> Assignee: Paul King
> Priority: Minor
> Labels: groovyc
> Fix For: 2.4.8
>
> 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.15#6346)