@@ -0,0 +1,1405 @@
+package com.alibaba.json.bvt.bug;%0A%0Aimport java.io.Serializable;%0A%0Aimport junit.framework.Assert;%0Aimport junit.framework.TestCase;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0A%0Apublic class Bug_for_stv_liu extends TestCase %7B%0A%0A    public void test() %7B%0A        User user = new User();%0A        user.setId(%221%22);%0A        user.setUsername(%22test%22);%0A        String json = JSON.toJSONString(user, SerializerFeature.WriteClassName);%0A        user = (User) JSON.parse(json);// %E6%AD%A4%E5%A4%84%E6%8A%9B%E5%BC%82%E5%B8%B8%0A        Assert.assertNotNull(user);%0A    %7D%0A%0A    public static interface IdEntity%3CT extends Serializable%3E extends Serializable %7B%0A%0A        T getId();%0A%0A        void setId(T id);%0A    %7D%0A%0A    public static class BaseEntity implements IdEntity%3CString%3E %7B%0A%0A        private static final long serialVersionUID = 1L;%0A        private String            id;%0A%0A        public String getId() %7B%0A            return id;%0A        %7D%0A%0A        public void setId(String id) %7B%0A            this.id = id;%0A        %7D%0A    %7D%0A%0A    public static class User extends BaseEntity %7B%0A%0A        private String username;%0A%0A        /**%0A         * @return the username%0A         */%0A        public String getUsername() %7B%0A            return username;%0A        %7D%0A%0A        /**%0A         * @param username the username to set%0A         */%0A        public void setUsername(String username) %7B%0A            this.username = username;%0A        %7D%0A    %7D%0A%7D%0A

add test