[
https://issues.apache.org/jira/browse/GROOVY-11088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17730634#comment-17730634
]
Eric Milles edited comment on GROOVY-11088 at 6/8/23 5:14 PM:
--------------------------------------------------------------
https://github.com/apache/groovy/commit/9e23c5f21fb293707ae4d1d779d6606dc4b1be4c
https://github.com/apache/groovy/commit/548649ad03b51d96830ddaca89b1438fa0c7ce0b
was (Author: emilles):
https://github.com/apache/groovy/commit/9e23c5f21fb293707ae4d1d779d6606dc4b1be4c
> 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
>
> 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 stubgen running on an early compile pahse. 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)