NyaaCat / NyaaCore

Code infrastructure for all NyaaCat plugins
MIT License
22 stars 12 forks source link

Nested-named objects not deserialized correctly #10

Closed RecursiveG closed 7 years ago

RecursiveG commented 7 years ago
static class Test3Class implements ISerializable {
    @Serializable(name = "object.nested")
    DataObject.NestedObject obj = new DataObject.NestedObject();
}

@Test
public void test3() throws Exception {
    YamlConfiguration cfg = new YamlConfiguration();
    Test3Class cls = new Test3Class();
    cls.serialize(cfg);
    cls.obj = null;
    cls.deserialize(cfg);
    assertNotNull(cls.obj); // Fail
}