revert groovyc JointCompilationClassLoader changes as they don't fix IDEA-166169

This commit is contained in:
peter
2017-01-30 15:37:55 +01:00
parent 4fde1be3df
commit 683071b1a4
@@ -15,7 +15,6 @@
*/
package org.jetbrains.jps.incremental.groovy;
import com.intellij.util.SystemProperties;
import com.intellij.util.lang.ClassPath;
import com.intellij.util.lang.UrlClassLoader;
import org.jetbrains.annotations.NotNull;
@@ -24,7 +23,6 @@ import org.jetbrains.annotations.NotNull;
* @author peter
*/
class JointCompilationClassLoader extends UrlClassLoader {
private static final boolean ourExplicitlyAvoidLoadingJava = SystemProperties.getBooleanProperty("groovy.classloader.skip.java.package", true);
@NotNull private final Builder myBuilder;
@NotNull private ClassPath myClassPath;
@@ -34,13 +32,6 @@ class JointCompilationClassLoader extends UrlClassLoader {
myClassPath = super.getClassPath();
}
@Override
protected Class findClass(String name) throws ClassNotFoundException {
if (ourExplicitlyAvoidLoadingJava && name.startsWith("java.")) return null;
return super.findClass(name);
}
@Override
protected Class _defineClass(String name, byte[] b) {
try {