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

对于数值相关类型有bug,基于1.6版本 #296

Open
cf806694872 opened this issue Jul 16, 2022 · 0 comments
Open

对于数值相关类型有bug,基于1.6版本 #296

cf806694872 opened this issue Jul 16, 2022 · 0 comments

Comments

@cf806694872
Copy link

cf806694872 commented Jul 16, 2022

示例 void test(long l,int i)
void test(long l,long l)
这种long 类型传递会报错,原因是因为走到test(long l,int i) 方法中,原因是因为框架中有个bug,
bug 的地方com.googlecode.jsonrpc4j.JsonRpcBasicServer#isMatchingType 中node.isNumber() 并未判断传递的类型与方法参数类型是否一致,导致谁顺序在上就加载谁,如果传递是long类型,导致走第一个方法,int 参数 导致数值长度超了

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

No branches or pull requests

1 participant