Use lookupAny() instead of lookup()
- Should be OK because Netty 4.0 requires Java 6
This commit is contained in:
parent
7fbd1e5095
commit
00106b367c
@ -53,7 +53,7 @@ class CompactObjectInputStream extends ObjectInputStream {
|
|||||||
case CompactObjectOutputStream.TYPE_THIN_DESCRIPTOR:
|
case CompactObjectOutputStream.TYPE_THIN_DESCRIPTOR:
|
||||||
String className = readUTF();
|
String className = readUTF();
|
||||||
Class<?> clazz = classResolver.resolve(className);
|
Class<?> clazz = classResolver.resolve(className);
|
||||||
return ObjectStreamClass.lookup(clazz);
|
return ObjectStreamClass.lookupAny(clazz);
|
||||||
default:
|
default:
|
||||||
throw new StreamCorruptedException(
|
throw new StreamCorruptedException(
|
||||||
"Unexpected class descriptor type: " + type);
|
"Unexpected class descriptor type: " + type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user