dubbo-hessian-lite icon indicating copy to clipboard operation
dubbo-hessian-lite copied to clipboard

接口参数如果Map的key 是NULL会被替换成0

Open iwhalecloud-platform opened this issue 4 years ago • 0 comments

public class User implements java.io.Serializable {

    private Map<Long, Long> map;

    public Map<Long, Long> getMap() {
        return map;
    }

    public void setMap(Map<Long, Long> map) {
        this.map = map;
    }
}

序列化之前:

User user = new User();
                Map<Long, Long> map = new HashMap<>();
                map.put(null, 1L);
                user.setMap(map);
                String hello = demoService.sayHello(user);

序列化之后,map里面的key变成0

iwhalecloud-platform avatar Apr 16 '20 09:04 iwhalecloud-platform