jsouper
jsouper copied to clipboard
AutoValue abstract class problem
In implementation of ClassElementAdapter there is a check for
if (Modifier.isAbstract(rawType.getModifiers())) {
throw new IllegalArgumentException("Cannot serialize abstract class " + rawType.getName());
}
is this necessary? Autovalue model with SoupAdapter annotation is throwing exception.
Unless correct adapter is provided by SoupAdapter Annotation than this should be handled by user. Also interfaces dont make sence until user define correct adapter. Or am I missing something?
Manual creation with Jsouper.Builder is working fine for our abstract model classes.