[#452] CompactObjectInputStream fails to resolve interfaces
This commit is contained in:
parent
d579a5a38f
commit
1843094461
@ -37,7 +37,8 @@ class CompactObjectOutputStream extends ObjectOutputStream {
|
|||||||
@Override
|
@Override
|
||||||
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException {
|
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException {
|
||||||
Class<?> clazz = desc.forClass();
|
Class<?> clazz = desc.forClass();
|
||||||
if (clazz.isPrimitive() || clazz.isArray() || desc.getSerialVersionUID() == 0) {
|
if (clazz.isPrimitive() || clazz.isArray() || clazz.isInterface() ||
|
||||||
|
desc.getSerialVersionUID() == 0) {
|
||||||
write(TYPE_FAT_DESCRIPTOR);
|
write(TYPE_FAT_DESCRIPTOR);
|
||||||
super.writeClassDescriptor(desc);
|
super.writeClassDescriptor(desc);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user