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

hessian2 supports setting the type of Java method parameters #1625

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

binbin0325
Copy link
Member

What this PR does:
hessian2 supports setting the type of Java method parameters
Which issue(s) this PR fixes:

Fixes #1624

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@binbin0325
Copy link
Member Author

merge cannot be performed at the moment. Wait until hessian2 releases the new version

@binbin0325 binbin0325 changed the title [WIP]hessian2 supports setting the type of Java method parameters hessian2 supports setting the type of Java method parameters Dec 4, 2021
@AlexStocks
Copy link
Contributor

maybe u should add an ut for this pr.

@binbin0325
Copy link
Member Author

maybe u should add an ut for this pr.

done

@binbin0325
Copy link
Member Author

@LaurenceLiZhixin ready to merge, need to trigger the CI again

@codecov-commenter
Copy link

Codecov Report

Merging #1625 (26e3a78) into 3.0 (7bb88bf) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              3.0    #1625      +/-   ##
==========================================
- Coverage   41.16%   41.12%   -0.04%     
==========================================
  Files         253      253              
  Lines       14506    14509       +3     
==========================================
- Hits         5971     5967       -4     
- Misses       7844     7853       +9     
+ Partials      691      689       -2     
Impacted Files Coverage Δ
protocol/dubbo/impl/hessian.go 34.37% <100.00%> (+3.14%) ⬆️
metadata/report/delegate/delegate_report.go 26.49% <0.00%> (-8.61%) ⬇️
metrics/prometheus/reporter.go 26.85% <0.00%> (-1.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bb88bf...26e3a78. Read the comment docs.

@@ -490,6 +490,10 @@ func getArgType(v interface{}) string {
}
switch t.Kind() {
case reflect.Struct:
p, ok := v.(hessian.Param)
Copy link
Member

@justxuewei justxuewei Dec 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Param name makes me confused, I think it's better if it is called inherited names and interfaces respectively.

BTW, I think inherited names and interfaces should return a string array to fit all inheritance scenarios. For instance, class A inherits from class B, and class B inherits from class C, so the return value of inherited names is []string{B, C}.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个看上去应该给hessian 提交个issue? @justxuewei

@@ -490,6 +490,10 @@ func getArgType(v interface{}) string {
}
switch t.Kind() {
case reflect.Struct:
p, ok := v.(hessian.Param)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个看上去应该给hessian 提交个issue? @justxuewei

@LaurenceLiZhixin LaurenceLiZhixin added this to the v3.0.0 milestone Dec 6, 2021
@LaurenceLiZhixin LaurenceLiZhixin merged commit 30b5e18 into apache:3.0 Dec 6, 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.

5 participants