зеркало из https://github.com/mozilla/gecko-dev.git
loadClassName: use current class loader to find classes, before calling Class.forName().
This commit is contained in:
Родитель
edec17afb5
Коммит
426dfab4d7
|
@ -2037,7 +2037,11 @@ public class ScriptRuntime {
|
|||
new Object[0]);
|
||||
if (cl != null)
|
||||
return cl.loadClass(className);
|
||||
}
|
||||
} else {
|
||||
ClassLoader cl = ScriptRuntime.class.getClassLoader();
|
||||
if (cl != null)
|
||||
return cl.loadClass(className);
|
||||
}
|
||||
} catch (SecurityException e) {
|
||||
// fall through...
|
||||
} catch (IllegalAccessException e) {
|
||||
|
|
|
@ -2037,7 +2037,11 @@ public class ScriptRuntime {
|
|||
new Object[0]);
|
||||
if (cl != null)
|
||||
return cl.loadClass(className);
|
||||
}
|
||||
} else {
|
||||
ClassLoader cl = ScriptRuntime.class.getClassLoader();
|
||||
if (cl != null)
|
||||
return cl.loadClass(className);
|
||||
}
|
||||
} catch (SecurityException e) {
|
||||
// fall through...
|
||||
} catch (IllegalAccessException e) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче