Details
Description
It seems that the Groovy compiler is running afoul of an interaction glitch similar to that which appeared around the introduction of JDK 9: when a public class extends a package-access base class that declares public methods, the static compiler permits calling Derived#inheritedPublicMethod(), but an IllegalAccessError is produced at runtime.
Specifically, I'm trying to use the (abandoned) Overpasser library, and I'm tripping on OverpassFilterQuery#end(), which is the "done with this section" method of the DSL. Using it compiles fine but results in
java.lang.IllegalAccessError: failed to access class hu.supercluster.overpasser.library.query.AbstractOverpassSubQuery from class com.example.ThingDoer$_run_closure6 (hu.supercluster.overpasser.library.query.AbstractOverpassSubQuery and com.example.ThingDoer$_run_closure6 are in unnamed module of loader 'app')
Attachments
Issue Links
- is related to
-
GROOVY-10120 STC: Guava Multimap#asMap bridge method
-
- Closed
-
- relates to
-
GROOVY-10429 StringBuilder misses setLength method in Java17
-
- Closed
-
-
GROOVY-10594 Unable to Call StringBuilder.substring() method (JDK17, Groovy 3)
-
- Closed
-