Package com.alibaba.json.bvt.bug

Source Code of com.alibaba.json.bvt.bug.Bug1

package com.alibaba.json.bvt.bug;

import junit.framework.TestCase;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.json.bvt.bug.JSONTest.InnerEntry;
import com.alibaba.json.bvt.bug.JSONTest.OuterEntry;

public class Bug1 extends TestCase {

    public void testToEntry2() {
        InnerEntry inner1 = null;// 出错
        String source1 = JSONObject.toJSONString(inner1);
        System.out.println(source1);
        OuterEntry inner2 = JSONObject.parseObject(source1, OuterEntry.class);// 出错
    }
}
TOP

Related Classes of com.alibaba.json.bvt.bug.Bug1

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.