mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] use context classloader instead of 'this' classloader (IDEA-138275)
(cherry picked from commit 4f32475)
This commit is contained in:
@@ -196,10 +196,12 @@ public class DependentGroovycRunner {
|
||||
}
|
||||
}
|
||||
else if (line.startsWith(GroovyRtConstants.PATCHERS)) {
|
||||
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
|
||||
String s;
|
||||
while (!GroovyRtConstants.END.equals(s = reader.readLine())) {
|
||||
try {
|
||||
final CompilationUnitPatcher patcher = (CompilationUnitPatcher)Class.forName(s).newInstance();
|
||||
final Class<?> patcherClass = classLoader.loadClass(s);
|
||||
final CompilationUnitPatcher patcher = (CompilationUnitPatcher)patcherClass.newInstance();
|
||||
patchers.add(patcher);
|
||||
}
|
||||
catch (InstantiationException e) {
|
||||
|
||||
Reference in New Issue
Block a user