@@ -0,0 +1,1752 @@
+package com.alibaba.json.bvt.bug;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class Bug_for_issue_383 extends TestCase %7B%0A%0A    public void test_for_issue() throws Exception %7B%0A        TestClass ts = new TestClass();%0A        ts.getHashSet().add(1);%0A        ts.getHashSet().add(4);%0A        ts.getMember().getHashSet().add(10);%0A        ts.getMember().getHashSet().add(15);%0A        String jsonStr = JSON.toJSONString(ts, new SerializerFeature%5B%5D%7B%0A                SerializerFeature.WriteClassName, SerializerFeature.DisableCircularReferenceDetect%0A        %7D);%0A        System.out.println(jsonStr);%0A        ts = JSON.parseObject(jsonStr, TestClass.class);%0A        for (Integer val : ts.getHashSet()) %7B%0A            System.out.println(val);%0A        %7D%0A    %7D%0A%0A    public static class TestClass %7B%0A%0A        private Set%3CInteger%3E hashSet = new HashSet%3CInteger%3E();%0A        private Member member = new Member();%0A%0A        public TestClass() %7B%0A        %7D%0A%0A        public Set%3CInteger%3E getHashSet() %7B%0A            return hashSet;%0A        %7D%0A%0A        public void setHashSet(Set%3CInteger%3E hashSet) %7B%0A            this.hashSet = hashSet;%0A        %7D%0A%0A        public Member getMember() %7B%0A            return member;%0A        %7D%0A%0A        public void setMember(Member member) %7B%0A            this.member = member;%0A        %7D%0A    %7D%0A%0A    public static class Member%7B%0A        private Set%3CInteger%3E hashSet = new HashSet%3CInteger%3E();%0A%0A        public Member() %7B%0A        %7D%0A%0A        public Set%3CInteger%3E getHashSet() %7B%0A            return hashSet;%0A        %7D%0A%0A        public void setHashSet(Set%3CInteger%3E hashSet) %7B%0A            this.hashSet = hashSet;%0A        %7D%0A    %7D%0A%7D%0A

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