Skip to content

Commit

Permalink
fix the bug in deserializers in union when union member is a enumerat…
Browse files Browse the repository at this point in the history
…e subtype
  • Loading branch information
zjiuyang committed Oct 4, 2016
1 parent 1221271 commit 9018919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/java.stoneg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ def requires_validation(data_type):

def is_collapsible(self, data_type):
assert isinstance(data_type, DataType), repr(data_type)
return is_struct_type(data_type) and not data_type.is_member_of_enumerated_subtypes_tree()
return is_struct_type(data_type) and not data_type.has_enumerated_subtypes()

@staticmethod
def param_name(stone_elem):
Expand Down

0 comments on commit 9018919

Please sign in to comment.