[
https://issues.apache.org/jira/browse/GROOVY-7762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-7762.
---------------------------------
Fix Version/s: 4.0.0-rc-2
Resolution: Fixed
https://github.com/apache/groovy/commit/19972acace5b56e6defeaf750ced7a61b7e0e150
https://github.com/apache/groovy/commit/51682fa4cbca7ca92af4922ddafa3a402f0f22a6
> Static inner classes not visible to child classes
> -------------------------------------------------
>
> Key: GROOVY-7762
> URL: https://issues.apache.org/jira/browse/GROOVY-7762
> Project: Groovy
> Issue Type: Sub-task
> Components: class generator
> Affects Versions: 2.1.6, 2.2.0-beta-1, 2.1.7, 2.2.0, 2.4.0-beta-3
> Reporter: Kenneth Gendron
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-rc-2
>
>
> If both the parent class and the child are in the same file or project (i.e.
> they are being compiled together), this works; however, if the parent is
> compiled into a separate JAR, the child class is unable to see the parents
> inner classes.
> Example:
> {code}class X {
> static class Y {}
> }{code}
> Compile X into a separate JAR.
> {code}class Z extends X {
> Z() {
> Y y = new Y();
> }
> }{code}
> Compiling Z will cause an error.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)