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:
|
||||
String className = readUTF();
|
||||
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:
|
||||
throw new StreamCorruptedException(
|
||||
"Unexpected class descriptor type: " + type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user