/* * www.yiji.com Inc. * Copyright (c) 2014 All Rights Reserved */ /* * 修订记录: * qzhanbo@yiji.com 2015-03-01 00:55 创建 * */ package com.alibaba.json.bvt.serializer; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.annotation.JSONField; import junit.framework.TestCase; public class DupSetterTest4 extends TestCase { public void testDup() { V1 vo = new V1(); vo.status = 3; String json = JSONObject.toJSONString(vo); JSONObject.parseObject(json, V1.class); } public static class V0 { @JSONField(name="status") public Long status2; } public static class V1 extends V0 { private Integer status; public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } } }