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

修复参数有泛型时类型转化出错 #755

Merged
merged 1 commit into from
Oct 22, 2017

Conversation

Elin-Zhou
Copy link
Contributor

当参数有泛型时,得到的参数类型不是Class类型而是ParameterizedType,则原代码会导致使用json反序列化后的类型,如果字段的实际参数与json反序列化默认参数不符的话将会报错,列入字段的类型为Set,而json反序列化后的类型为List

@chickenlj
Copy link
Contributor

在fastjson做序列化协议时,是会存在以上类型匹配问题;在hessian2等序列化协议场景下并不存在此问题。
是这样的吗?

@chickenlj chickenlj merged commit 4bc1097 into apache:master Oct 22, 2017
xpylq pushed a commit to xpylq/dubbo that referenced this pull request Oct 24, 2017
* remotes/upstream/master:
  Fix all unit test case
  Merge pull request apache#107 from sonicwu:master
  Open UT on travis
  Merge pull request apache#749 from Just-CJ:master
  Fix config error of heartbeat UT in dubbo-test-examples
  Merge pull request apache#755 from Elin-Zhou:master
  Merge pull request apache#748 from mysqto:master
  Merge pull request apache#765 from hollyshi:patch-1
  Delete dubbo1 rpc protocol copatipable logic
  Create Contributing.md
@chickenlj chickenlj mentioned this pull request Nov 22, 2017
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.

2 participants