Root annotation ignored
Brought to you by:
niallg
In simple-xml-2.7.1 root annotation on top of the class is ignored in some cases.
example:
XML:
<h1>Server Error (500)</h1>
Will be parsed into class (with empty list):
@Root(name="Auctions")
public class Auctions {
private Auctions(){
mAuctions = new ArrayList<Auction>();
}
@ElementList(entry="Auction", inline=true, required=false)
private ArrayList<Auction> mAuctions;
public ArrayList<Auction> getAuctions() {
return mAuctions;
}
}
But, Serializer.read should throw exception. Shouldn't it?
XML example in issue is:
\
Server Error (500)\
without "\" signs.
Maybe similar to bug [#33].
Related
Bugs: #33