synchronize the setter like the other setters
@@ -328,7 +328,8 @@ public class ResourceManager_impl implements ResourceManager {
}
// https://issues.apache.org/jira/browse/UIMA-5553
- public void setExtensionClassLoaderImpl(ClassLoader parent, boolean resolveResource) {
+ // synchronized because the other methods that set the extension class loader are.
+ public synchronized void setExtensionClassLoaderImpl(ClassLoader parent, boolean resolveResource) {
uimaCL = new UIMAClassLoader(new URL[0], parent);
if (resolveResource) {
// set UIMA extension ClassLoader also to resolve resources
