mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-21 00:37:13 +08:00
git-svn-id: http://code.alibabatech.com/svn/fastjson/trunk/fastjson@1358 fb902949-7fc4-4485-a80f-4d6ff335c879
This commit is contained in:
@@ -15,9 +15,10 @@ public class Bug_for_SpitFire extends TestCase {
|
||||
|
||||
String text = JSON.toJSONString(object, SerializerFeature.WriteClassName);
|
||||
|
||||
GenericDTO object2 = JSON.parseObject(text, GenericDTO.class);
|
||||
GenericDTO<MyDTO> object2 = (GenericDTO<MyDTO>) JSON.parseObject(text, GenericDTO.class);
|
||||
|
||||
Assert.assertEquals(object.getName(), object2.getName());
|
||||
Assert.assertEquals(object.getFiled().getId(), object2.getFiled().getId());
|
||||
}
|
||||
|
||||
public static class GenericDTO<T extends AbstractDTO> extends AbstractDTO {
|
||||
|
||||
Reference in New Issue
Block a user