[
https://issues.apache.org/jira/browse/GROOVY-11088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-11088:
---------------------------------
Fix Version/s: 3.0.18
> Missing symbol for package-private member under joint compilation
> -----------------------------------------------------------------
>
> Key: GROOVY-11088
> URL: https://issues.apache.org/jira/browse/GROOVY-11088
> Project: Groovy
> Issue Type: Bug
> Components: Stub generator / Joint compiler
> Affects Versions: 3.0.17, 4.0.12
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 3.0.18, 4.0.13
>
>
> Consider the following:
> {code:groovy}
> class C {
> @PackageScope static final String X = "x"
> }
> {code}
> Reference to "C.X" from a java class in the same package produces error:
> {code}
> Main.java:4: error: cannot find symbol
> System.err.println(C.X);
> ^
> symbol: variable X
> location: class C
> 1 error
> {code}
> This has to do with stubgen running on an early compile phase. In this case,
> there are no members to generate, only modifiers to adjust so we should be
> able to sniff this out and handle it special.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)