mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8266109: More Resilient Classloading
Reviewed-by: lancea, rhalade, mschoene, bchristi
This commit is contained in:
parent
a07a046c92
commit
3470e7b300
3 changed files with 27 additions and 0 deletions
|
@ -427,6 +427,11 @@ public class URLClassLoader extends SecureClassLoader implements Closeable {
|
|||
return defineClass(name, res);
|
||||
} catch (IOException e) {
|
||||
throw new ClassNotFoundException(name, e);
|
||||
} catch (ClassFormatError e2) {
|
||||
if (res.getDataError() != null) {
|
||||
e2.addSuppressed(res.getDataError());
|
||||
}
|
||||
throw e2;
|
||||
}
|
||||
} else {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue