@@ -0,0 +1,1816 @@
+package com.alibaba.json.bvt.bug;%0A%0Aimport org.junit.Assert;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.JSONObject;%0Aimport com.alibaba.fastjson.TypeReference;%0Aimport com.alibaba.fastjson.parser.Feature;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class Bug_for_issue_330 extends TestCase %7B%0A%0A    public void test_for_issue() throws Exception %7B%0A        String jsonContent = %22%7B%5C%22data%5C%22:%7B%5C%22content%5C%22:%5C%22xxx%5C%22,%5C%22hour%5C%22:1%7D%7D%22;%0A        StatusBean%3CWorkBean%3E bean = JSONObject.parseObject(jsonContent,%0A                                      new TypeReference%3CStatusBean%3CWorkBean%3E%3E() %7B%0A                                    %7D);%0A        %0A        Assert.assertNotNull(bean.getData());%0A        Assert.assertEquals(1, bean.getData().getHour());%0A        Assert.assertEquals(%22xxx%22, bean.getData().getContent());%0A    %7D%0A%0A    public static class StatusBean%3CT%3E %7B%0A%0A        private int    code;%0A        private String msg;%0A        private T      data;%0A%0A        public int getCode() %7B%0A            return code;%0A        %7D%0A%0A        public void setCode(int code) %7B%0A            this.code = code;%0A        %7D%0A%0A        public String getMsg() %7B%0A            return msg;%0A        %7D%0A%0A        public void setMsg(String msg) %7B%0A            this.msg = msg;%0A        %7D%0A%0A        public T getData() %7B%0A            return data;%0A        %7D%0A%0A        public void setData(T data) %7B%0A            this.data = data;%0A        %7D%0A%0A    %7D%0A%0A    public static class WorkBean %7B%0A%0A        private int    hour;%0A        private String content;%0A%0A        public int getHour() %7B%0A            return hour;%0A        %7D%0A%0A        public void setHour(int hour) %7B%0A            this.hour = hour;%0A        %7D%0A%0A        public String getContent() %7B%0A            return content;%0A        %7D%0A%0A        public void setContent(String content) %7B%0A            this.content = content;%0A        %7D%0A%0A    %7D%0A%7D%0A

add testcase for issue 330. https://github.com/alibaba/fastjson/issues/330