[
https://issues.apache.org/jira/browse/GROOVY-7924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15455289#comment-15455289
]
ASF GitHub Bot commented on GROOVY-7924:
----------------------------------------
GitHub user paulk-asert opened a pull request:
https://github.com/apache/groovy/pull/407
GROOVY-7924: groovyc fails with NPE for dynamic method/property use o…
…n super
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paulk-asert/groovy groovy7924
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/407.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #407
----
commit f86c731248e412dd49eb10b5ab239199a389a566
Author: paulk <[email protected]>
Date: 2016-09-01T12:50:16Z
GROOVY-7924: groovyc fails with NPE for dynamic method/property use on super
----
> 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)