Fix for NETTY-150 CompactObjectInputStream web start (applet) Class.forName issue
This commit is contained in:
parent
3c79744064
commit
23d922fab2
@ -90,7 +90,13 @@ class CompactObjectInputStream extends ObjectInputStream {
|
||||
protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
|
||||
String name = desc.getName();
|
||||
try {
|
||||
if (classLoader == null) {
|
||||
return Class.forName(
|
||||
name, false,
|
||||
Thread.currentThread().getContextClassLoader());
|
||||
} else {
|
||||
return Class.forName(name, false, classLoader);
|
||||
}
|
||||
} catch (ClassNotFoundException ex) {
|
||||
return super.resolveClass(desc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user