Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.22, 4.0.23, 5.0.0-alpha-10
-
None
-
None
Description
GroovyClassLoader is parallel capable but we do not declare it as such by calling the registerAsParallelCapable method as per recommended guidelines[1]. Some frameworks have worked around this using reflection but as JDK restrictions have tightened in later JDK versions, this has become not possible. Other workarounds[2] for frameworks to work with non-parallel capable classloaders have also been deprecated and removed in recent JDK versions[3][4][5]. See also [6].
[1] https://docs.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.html
[2] https://openjdk.org/groups/core-libs/ClassLoaderProposal.html
[3] https://bugs.openjdk.org/browse/JDK-8296446
[4] https://bugs.openjdk.org/browse/JDK-8303967
[5] https://bugs.openjdk.org/browse/JDK-8295848
[6] https://inside.java/2022/11/14/quality-heads-up/
Attachments
Issue Links
- links to