-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add decimal support #97
Conversation
@aliiohs I think just add Decimal as a POJO, do not refactor the hessian2 to meet it, change the Decimal instead. And also add unit test to decode that encoded in java. |
Nice work. |
object.go
Outdated
@@ -346,7 +346,7 @@ func (d *Decoder) decInstance(typ reflect.Type, cls classInfo) (interface{}, err | |||
d.unreadByte() // Enum parsing, decInt64 above has read a byte, so you need to return a byte here | |||
s, err := d.DecodeValue() | |||
if err != nil { | |||
return nil, perrors.Wrapf(err, "decInstance->decObject field name:%s", fieldName) | |||
return nil, perrors.Wrapf(err, "decInstance->Deserialize field name:%s", fieldName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it doesn't needed to change the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the name consistent?
Feature/add decimal support
What this PR does:
Feature/add decimal support
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: