@@ -0,0 +1,898 @@
+package com.alibaba.json.bvt.issue_2300;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.JSONObject;%0Aimport com.alibaba.fastjson.annotation.JSONField;%0Aimport junit.framework.TestCase;%0A%0Apublic class Issue2343 extends TestCase %7B%0A    public void test_for_issue() throws Exception %7B%0A        A a = new A();%0A        a.f1 = 101;%0A        a.f2 = 102;%0A        a.f3 = 103;%0A%0A        String str = JSON.toJSONString(a);%0A        assertEquals(%22%7B%5C%22f2%5C%22:102,%5C%22f1%5C%22:101,%5C%22f3%5C%22:103%7D%22, str);%0A%0A        JSONObject object = JSON.parseObject(str);%0A        A a1 = object.toJavaObject(A.class);%0A        assertEquals(a.f1, a1.f1);%0A        assertEquals(a.f2, a1.f2);%0A        assertEquals(a.f3, a1.f3);%0A    %7D%0A%0A    public static class A %7B%0A        @JSONField(ordinal = 1)%0A        public int f1;%0A%0A        @JSONField(ordinal = 0)%0A        public int f2;%0A%0A        @JSONField(ordinal = 2)%0A        public int f3;%0A    %7D%0A%7D%0A

add testcase for issue #2343