We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
com.alibaba.com.caucho.hessian.io.HessianInput.readObject(); if (List.class != reader.getType() && List.class.isAssignableFrom(reader.getType())) return reader.readList(this, length, valueType ? expectedTypes.get(0) : null);
第一个条件:List.class != reader.getType() 读取的类型不能是List 第二个条件:List.class.isAssignableFrom(reader.getType())) 判断接口类型,这里明显少了一个 感叹号。 应该加一个感叹号
!List.class.isAssignableFrom(reader.getType()))
否则永远都是list读取
case 'V': { String type = readType();
如果type为空是否要默认list,否则读取的是map序列化
The text was updated successfully, but these errors were encountered:
这个是去年提的,我现在看源码还是一样呀
Sorry, something went wrong.
No branches or pull requests
代码
第一个条件:List.class != reader.getType() 读取的类型不能是List
第二个条件:List.class.isAssignableFrom(reader.getType())) 判断接口类型,这里明显少了一个 感叹号。
应该加一个感叹号
否则永远都是list读取
如果type为空是否要默认list,否则读取的是map序列化
The text was updated successfully, but these errors were encountered: