@@ -0,0 +1,1163 @@
+package com.alibaba.json.bvt.issue_1100;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0Aimport junit.framework.TestCase;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by wenshao on 19/04/2017.%0A */%0Apublic class Issue1151 extends TestCase %7B%0A    public void test_for_issue() throws Exception %7B%0A        A a = new A();%0A        a.list.add(new C(1001));%0A        a.list.add(new C(1002));%0A%0A        String json = JSON.toJSONString(a, SerializerFeature.NotWriteRootClassName, SerializerFeature.WriteClassName);%0A        assertEquals(%22%7B%5C%22list%5C%22:%5B%7B%5C%22@type%5C%22:%5C%22com.alibaba.json.bvt.issue_1100.Issue1151$C%5C%22,%5C%22id%5C%22:1001%7D,%7B%5C%22@type%5C%22:%5C%22com.alibaba.json.bvt.issue_1100.Issue1151$C%5C%22,%5C%22id%5C%22:1002%7D%5D%7D%22, json);%0A%0A        A a2 = JSON.parseObject(json, A.class);%0A        assertSame(a2.list.get(0).getClass(), C.class);%0A    %7D%0A%0A    public static class A %7B%0A        public List%3CB%3E list = new ArrayList%3CB%3E();%0A    %7D%0A%0A    public static  interface B %7B%0A%0A    %7D%0A%0A    public static  class C implements B %7B%0A        public int id;%0A        public C() %7B%0A%0A        %7D%0A%0A        public C(int id) %7B%0A            this.id = id;%0A        %7D%0A    %7D%0A%7D%0A

add testcase for issue #1151