Skip to content
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

Merged
merged 31 commits into from
Jul 10, 2019
Merged

Feature/add decimal support #97

merged 31 commits into from
Jul 10, 2019

Conversation

aliiohs
Copy link
Member

@aliiohs aliiohs commented Jul 6, 2019

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?:


decimal_codec.go Outdated Show resolved Hide resolved
@wongoo
Copy link
Contributor

wongoo commented Jul 6, 2019

@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.

decimal_codec_test.go Outdated Show resolved Hide resolved
decimal_codec.go Outdated Show resolved Hide resolved
decimal_codec.go Outdated Show resolved Hide resolved
decimal_codec.go Outdated Show resolved Hide resolved
decimal_codec_test.go Outdated Show resolved Hide resolved
decimal_codec.go Outdated Show resolved Hide resolved
decimal_codec_test.go Outdated Show resolved Hide resolved
serialize.go Outdated Show resolved Hide resolved
decimal_codec.go Outdated Show resolved Hide resolved
decimal_codec.go Outdated Show resolved Hide resolved
serialize.go Show resolved Hide resolved
@gaoxinge
Copy link
Contributor

gaoxinge commented Jul 8, 2019

Nice work.

serialize.go Outdated Show resolved Hide resolved
serialize.go Show resolved Hide resolved
serialize_test.go Outdated Show resolved Hide resolved
serialize_test.go Outdated Show resolved Hide resolved
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)
Copy link
Contributor

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.

Copy link
Member Author

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?

@wongoo
Copy link
Contributor

wongoo commented Jul 10, 2019

@wongoo wongoo merged commit e051e54 into apache:master Jul 10, 2019
@aliiohs aliiohs deleted the feature/AddDecimalSupport branch July 10, 2019 05:30
zhaoyunxing92 pushed a commit that referenced this pull request Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants