fixed ProtobufWriter writeValue setter method not found issue when domain value type is a subclass of setter parameter type
Example:
when setting ByteString value to the protobuf from domain, if the domain use the subclass LiteralByteString, it will cause a
net.badata.protobuf.converter.exception.WriteException: Setter not found: 'net.badata.protobuf.converter.proto.ConverterProto$ConverterTest$Builder.setBytesValue()'
becase the parameter value type of setBytesValue is ByteString.
fixed DefaultmapperImpl stack overflow issue when parse recursive value
Recursive field is very useful for representing structures like trees. When the converter tries to convert a protobuf into the domain value, it attempts to create a new instance for the nested value. If the nested value has the same type as its parent, the converter will keep creating its nested values, eventually causes a StackOverflowError.
fixed ProtobufWriter writeValue setter method not found issue when domain value type is a subclass of setter parameter type
Example:
when setting ByteString value to the protobuf from domain, if the domain use the subclass LiteralByteString, it will cause a
net.badata.protobuf.converter.exception.WriteException: Setter not found: 'net.badata.protobuf.converter.proto.ConverterProto$ConverterTest$Builder.setBytesValue()'
becase the parameter value type of
setBytesValue
is ByteString.fixed DefaultmapperImpl stack overflow issue when parse recursive value
Recursive field is very useful for representing structures like trees. When the converter tries to convert a protobuf into the domain value, it attempts to create a new instance for the nested value. If the nested value has the same type as its parent, the converter will keep creating its nested values, eventually causes a
StackOverflowError
.