Skip to content

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

@beyondhc

Description

@beyondhc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions