Make it work with java5 also
This commit is contained in:
parent
43f72b42f7
commit
36e8c4e8f2
@ -55,7 +55,9 @@ 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.lookupAny(clazz);
|
|
||||||
|
// change lookupAny to lookup as lookupAny is only supported in java6
|
||||||
|
return ObjectStreamClass.lookup(clazz);
|
||||||
default:
|
default:
|
||||||
throw new StreamCorruptedException(
|
throw new StreamCorruptedException(
|
||||||
"Unexpected class descriptor type: " + type);
|
"Unexpected class descriptor type: " + type);
|
||||||
|
Loading…
Reference in New Issue
Block a user