mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8215048: Some classloader typos
Reviewed-by: alanb
This commit is contained in:
parent
9846588b31
commit
100d5f79a6
2 changed files with 2 additions and 2 deletions
|
@ -2430,7 +2430,7 @@ public abstract class ClassLoader {
|
||||||
if (!load0(name, isBuiltin)) return false;
|
if (!load0(name, isBuiltin)) return false;
|
||||||
|
|
||||||
// register the class loader for cleanup when unloaded
|
// register the class loader for cleanup when unloaded
|
||||||
// built class loaders are never unloaded
|
// builtin class loaders are never unloaded
|
||||||
ClassLoader loader = fromClass.getClassLoader();
|
ClassLoader loader = fromClass.getClassLoader();
|
||||||
if (loader != null &&
|
if (loader != null &&
|
||||||
loader != getBuiltinPlatformClassLoader() &&
|
loader != getBuiltinPlatformClassLoader() &&
|
||||||
|
|
|
@ -805,7 +805,7 @@ public class URLClassPath {
|
||||||
private JarFile getJarFile(URL url) throws IOException {
|
private JarFile getJarFile(URL url) throws IOException {
|
||||||
// Optimize case where url refers to a local jar file
|
// Optimize case where url refers to a local jar file
|
||||||
if (isOptimizable(url)) {
|
if (isOptimizable(url)) {
|
||||||
FileURLMapper p = new FileURLMapper (url);
|
FileURLMapper p = new FileURLMapper(url);
|
||||||
if (!p.exists()) {
|
if (!p.exists()) {
|
||||||
throw new FileNotFoundException(p.getPath());
|
throw new FileNotFoundException(p.getPath());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue