Skip to content

Commit 9018919

Browse files
committed
fix the bug in deserializers in union when union member is a enumerate subtype
1 parent 1221271 commit 9018919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/java.stoneg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ def requires_validation(data_type):
17171717

17181718
def is_collapsible(self, data_type):
17191719
assert isinstance(data_type, DataType), repr(data_type)
1720-
return is_struct_type(data_type) and not data_type.is_member_of_enumerated_subtypes_tree()
1720+
return is_struct_type(data_type) and not data_type.has_enumerated_subtypes()
17211721

17221722
@staticmethod
17231723
def param_name(stone_elem):

0 commit comments

Comments
 (0)