mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
UrlClassLoader: removed dependency on Patches to avoid its premature initialization if UrlClassLoader is used as java.system.class.loader (IDEA-CR-8434)
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.util.lang;
|
||||
|
||||
import com.intellij.Patches;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
@@ -55,7 +54,6 @@ public class UrlClassLoader extends ClassLoader {
|
||||
// Unless explicitly disabled, request parallel loading capability via reflection due to current platform's Java 6 baseline
|
||||
// todo[r.sh] drop condition in IDEA 15
|
||||
// todo[r.sh] drop reflection after migrating to Java 7+
|
||||
assert Patches.USE_REFLECTION_TO_ACCESS_JDK7;
|
||||
|
||||
// IBM's classloader breaks when overridden getClassLoadingLock() is called, see https://youtrack.jetbrains.com/issue/IDEA-149187
|
||||
// so disallow parallel loading completely on JBM jdk
|
||||
|
||||
Reference in New Issue
Block a user