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

被调方Tars协议新增字段并设置默认值,调用方如果使用没有新增字段的旧协议调用的话,协议中定义的默认值不生效? #212

Open
beyondhc opened this issue Oct 17, 2023 · 0 comments

Comments

@beyondhc
Copy link

beyondhc commented Oct 17, 2023

image
@TimmyYu 有空帮看下是否这块应该重载一个方法com.qq.tars.protocol.tars.TarsInputStream#read(T, int, boolean,Object)入参新增默认值字段,如果propertyInfo.getDefaultValue != null 就使用协议默认值,而不是read写死默认值。如下面的重载方法
image

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