ElementListUnion - Simple xml giving duplicate annotation for generic list objects
问题 I am trying to deserialize a List field using elementlistunion Customer.java @ElementListUnion({ @ElementList(inline = false, type = Thing.class), @ElementList(inline = false, type = AnotherThing.class) }) List<Object> things = new ArrayList<Object>(); where Thing and AnotherThing are 2 POJO's.But Iam getting the following exception 03-21 18:56:31.940: E/AndroidRuntime(2289): Caused by: org.simpleframework.xml.core.PersistenceException: Duplicate annotation of name 'things' on @org