{"action":"opened","issue":{"url":"https://api.github.com/repos/alibaba/fastjson/issues/389","labels_url":"https://api.github.com/repos/alibaba/fastjson/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/fastjson/issues/389/comments","events_url":"https://api.github.com/repos/alibaba/fastjson/issues/389/events","html_url":"https://github.com/alibaba/fastjson/issues/389","id":99357598,"number":389,"title":"继承ArrayList的类的反序列化，元素类型不对","user":{"login":"liujingjing5","id":2947842,"avatar_url":"https://avatars.githubusercontent.com/u/2947842?v=3","gravatar_id":"","url":"https://api.github.com/users/liujingjing5","html_url":"https://github.com/liujingjing5","followers_url":"https://api.github.com/users/liujingjing5/followers","following_url":"https://api.github.com/users/liujingjing5/following{/other_user}","gists_url":"https://api.github.com/users/liujingjing5/gists{/gist_id}","starred_url":"https://api.github.com/users/liujingjing5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liujingjing5/subscriptions","organizations_url":"https://api.github.com/users/liujingjing5/orgs","repos_url":"https://api.github.com/users/liujingjing5/repos","events_url":"https://api.github.com/users/liujingjing5/events{/privacy}","received_events_url":"https://api.github.com/users/liujingjing5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-06T05:25:16Z","updated_at":"2015-08-06T05:25:16Z","closed_at":null,"body":"```java\r\n\t   public static class User{\r\n\t\tString name;\r\n\t\tString value;\r\n\t\tpublic String getName() {\r\n\t\t\treturn name;\r\n\t\t}\r\n\t\tpublic void setName(String name) {\r\n\t\t\tthis.name = name;\r\n\t\t}\r\n\t\tpublic String getValue() {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tpublic void setValue(String value) {\r\n\t\t\tthis.value = value;\r\n\t\t}\r\n\t\t   \r\n\t   }\r\n\t   \r\n\tpublic static class Def extends ArrayList<User> {\r\n\r\n\t}\r\n\r\n\tpublic static void main(String[] args){\r\n\t\tDef def = new Def();\r\n\t\tdef.add(new User());\r\n\t\tString defStr = JSON.toJSONString(def);\r\n\r\n\t\tDef _def = JSON.parseObject(defStr, new TypeReference<Def>() {});\r\n\t\tObject o = _def.get(0);   //这里得到的是JSONObject，应该返回一个User啊\r\n\t\tSystem.out.println(\"end\");\t\t   \r\n        }\r\n```"}}