diff --git a/platform/util/src/com/intellij/util/lang/ClassPath.java b/platform/util/src/com/intellij/util/lang/ClassPath.java index 7a78abc05712..0d12eaf72158 100644 --- a/platform/util/src/com/intellij/util/lang/ClassPath.java +++ b/platform/util/src/com/intellij/util/lang/ClassPath.java @@ -76,7 +76,10 @@ public class ClassPath { push(urls); } - /** @deprecated to be removed in IDEA 15 */ + /** + * @deprecated Adding additional urls to classpath at runtime could lead to hard-to-debug errors + */ + @Deprecated void addURL(URL url) { push(Collections.singletonList(url)); } diff --git a/platform/util/src/com/intellij/util/lang/UrlClassLoader.java b/platform/util/src/com/intellij/util/lang/UrlClassLoader.java index 20215a5f6178..5f8e2a8ed15f 100644 --- a/platform/util/src/com/intellij/util/lang/UrlClassLoader.java +++ b/platform/util/src/com/intellij/util/lang/UrlClassLoader.java @@ -195,8 +195,12 @@ public class UrlClassLoader extends ClassLoader { } } - /** @deprecated to be removed in IDEA 15 */ + /** + * @deprecated Adding additional urls to classloader at runtime could lead to hard-to-debug errors + * Note: Used via reflection because of classLoaders incompatibility + */ @SuppressWarnings({"unused", "deprecation"}) + @Deprecated public void addURL(URL url) { getClassPath().addURL(url); myURLs.add(url);