@@ -0,0 +1,2137 @@
+package com.alibaba.json.bvt.bug;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.parser.Feature;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class Bug_for_issue_630 extends TestCase %7B%0A%0A    public void test_for_issue_null() throws Exception %7B%0A        Model model = new Model();%0A        model.id = 123;%0A        model.name = null;%0A        model.modelName = null;%0A        model.isFlay = false;%0A//        model.persons = new ArrayList%3CPerson%3E();%0A//        model.persons.add(new Person());%0A        %0A        String str = JSON.toJSONString(model, SerializerFeature.BeanToArray);%0A//        System.out.println(str);%0A        JSON.parseObject(str, Model.class, Feature.SupportArrayToBean);%0A    %7D%0A    %0A    public void test_for_issue_empty() throws Exception %7B%0A        Model model = new Model();%0A        model.id = 123;%0A        model.name = null;%0A        model.modelName = null;%0A        model.isFlay = false;%0A        model.persons = new ArrayList%3CPerson%3E();%0A//        model.persons.add(new Person());%0A        %0A        String str = JSON.toJSONString(model, SerializerFeature.BeanToArray);%0A//        System.out.println(str);%0A        JSON.parseObject(str, Model.class, Feature.SupportArrayToBean);%0A    %7D%0A    %0A    public void test_for_issue_one() throws Exception %7B%0A        Model model = new Model();%0A        model.id = 123;%0A        model.name = null;%0A        model.modelName = null;%0A        model.isFlay = false;%0A        model.persons = new ArrayList%3CPerson%3E();%0A        model.persons.add(new Person());%0A        %0A        String str = JSON.toJSONString(model, SerializerFeature.BeanToArray);%0A//        System.out.println(str);%0A        JSON.parseObject(str, Model.class, Feature.SupportArrayToBean);%0A    %7D%0A%0A    public static class Model %7B%0A%0A        public int     id;%0A        public String  name;%0A        public String  modelName;%0A        public boolean isFlay;%0A        public List%3CPerson%3E    persons;// = new ArrayList%3CPerson%3E();%0A    %7D%0A%0A    public static class Person %7B%0A%0A        public int    id;%0A        public String name;%0A    %7D%0A%7D%0A

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