I have the following code:
private SetMultimap<String, Dynamic> dynamicFields = TreeMultimap.create(Ordering.natural(), new Comparator<Dynamic>() {
@Override
public int compare(Dynamic o1, Dynamic o2) {
return o1.getTitle().compareTo(o2.getTitle());
}
});
which gives me the following exception.
IllegalAnnotationsException SetMultimap is an interface, and JAXB can't handle interfaces
My question is, how come this doesn't work but this does:
List<Dynamic> test = new ArrayList<Dynamic>();
And how can I fix the SetMultimap so that JAXB is happy?