Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.14, 3.0.7, 4.0.0-alpha-2
-
None
Description
The same problem as in related issue but with static fields.
a/b/PackageScopedParent.java:
package a.b; class PackageScopedParent { public static final String TEST = "test"; }
a/b/PublicChildren.java:
package a.b; public class PublicChildren extends PackageScopedParent { }
c/Usage.groovy:
package c import a.b.PublicChildren import groovy.transform.CompileStatic @CompileStatic class Usage { static void main(String[] args) { println PublicChildren.TEST } }
error:
java.lang.IllegalAccessError: failed to access class a.b.PackageScopedParent from class c.Usage (a.b.PackageScopedParent and c.Usage are in unnamed module of loader 'app') at c.Usage.main(Usage.groovy:9)
Attachments
Attachments
Issue Links
- relates to
-
GROOVY-6962 IllegalAccessError exception is raised when accessing inherited public method
- Closed