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

hessian2 反序列化bug #3640

Closed
2 tasks done
jiaZengShen opened this issue Mar 12, 2019 · 3 comments
Closed
2 tasks done

hessian2 反序列化bug #3640

jiaZengShen opened this issue Mar 12, 2019 · 3 comments
Labels
type/bug Bugs to being fixed

Comments

@jiaZengShen
Copy link

jiaZengShen commented Mar 12, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.6.2
  • Operating System version: linux
  • Java version: 1.8

Steps to reproduce this issue

  1. 定义类:
public class JZSVo implements Serializable{
    List<Double> arr = new ArrayList<>();
    //get方法
    //set方法。
}
  1. 在producer端赋值
public JZSVo get() {
        List<Double> list = new ArrayList<>();
        list.add(null);
        list.add(null);
        list.add(3.0);

        JZSVo jzsVo = new JZSVo();
        jzsVo.setArr(list);
        return jzsVo;
    }
  1. 在service端接收返回的数据 jzsVo中的arr的第一个、第二个数据应该为null实际为0.0
    4.经过测试所有的基础类型:Double/Float/Integer等都会出现这种问题。

Expected Result

@zonghaishang zonghaishang added the type/bug Bugs to being fixed label Mar 12, 2019
@tswstarplanet
Copy link
Contributor

I try to reproduce the problem, but it fails. Can you provide a demo project ?

@CrazyHZM
Copy link
Member

I try to reproduce the problem, but it fails. Can you provide a demo project ?

I looked at this problem. It really exists. It should be a bug in hessian-lite. Let me fix it.

@fingthinking
Copy link

fingthinking commented Mar 24, 2019

I try to reproduce the problem, but it fails. Can you provide a demo project ?

I looked at this problem. It really exists. It should be a bug in hessian-lite. Let me fix it.
@CrazyHZM
哥们,你之前的修复思路不太对啊~~~,麻烦帮忙看看这个?apache/dubbo-hessian-lite#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bugs to being fixed
Projects
None yet
Development

No branches or pull requests

5 participants