You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (Jira)" <ji...@apache.org> on 2020/10/08 08:44:00 UTC

[jira] [Created] (SLING-9802) Launcher Classloader is not synchronizing loadClass correctly

Karl Pauls created SLING-9802:
---------------------------------

             Summary: Launcher Classloader is not synchronizing loadClass correctly
                 Key: SLING-9802
                 URL: https://issues.apache.org/jira/browse/SLING-9802
             Project: Sling
          Issue Type: Bug
          Components: Feature Model
    Affects Versions: Feature Model Launcher 1.1.6
            Reporter: Karl Pauls
            Assignee: Karl Pauls
             Fix For: Feature Model Launcher 1.1.8


The default LauncherClassloader is not synchronizing its loadClass method correctly. As it just delegates to the findClass of the URLClassloader it extends, it needs to at a minimum lock on the classname it is trying to load - otherwise, it is possible that it will catch a LinkageError if the same class load is happening concurrently.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)