Paul King created GROOVY-11478:
----------------------------------

             Summary: Enable GroovyClassLoader to be ParallelCapable
                 Key: GROOVY-11478
                 URL: https://issues.apache.org/jira/browse/GROOVY-11478
             Project: Groovy
          Issue Type: Improvement
    Affects Versions: 5.0.0-alpha-10, 4.0.23, 3.0.22
            Reporter: Paul King
            Assignee: Paul King


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/




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to