Skip to content

Commit a2c0172

Browse files
committed
Read annotations if superclass dictates that
1 parent ff14d8f commit a2c0172

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

javaobj/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,9 @@ def do_object(self, parent=None, ident=0):
906906
and classdesc.flags & self.SC_WRITE_METHOD
907907
or classdesc.flags & self.SC_EXTERNALIZABLE
908908
and classdesc.flags & self.SC_BLOCK_DATA
909+
or classdesc.superclass is not None
910+
and classdesc.superclass.flags & self.SC_SERIALIZABLE
911+
and classdesc.superclass.flags & self.SC_WRITE_METHOD
909912
):
910913
# objectAnnotation
911914
log_debug(

0 commit comments

Comments
 (0)