Hyphen
Hyphen copied to clipboard
Serialize at the speed of light.
eg: ```java public Foo< @SerSubclasses({Integer.class, Float.class}) ? extends Number> numbers; ```
Would this be default or would it require an annotation on the class? Could be default on if the base class is abstract / is an interface, but this could...
Without a `@SerSubclasses` a variable can be any subtype, (it will just get deserialized to the subclass unless we implement #14) but once the annotation is added, equality checks are...
Allow something like this ```java class Foo{ private final int hash; @Serialize private final T t; private Foo(int hash, T t){ ... } @SerFactory public static Foo of(T t){ ......
It could be useful to allow any subclass for a given field. This would work by first encoding the class name, and then using the serializer for that class. When...
* [x] tests should be able to mark themselves as "supposed to fail", with an expected error type / message * [ ] ideally we don't need to write a...
None of these seem to work: ```java public @SerSubclasses({Foo.class, Bar.class, Foo2.class}) Foo[] numbers; public Foo @SerSubclasses({Foo.class, Bar.class, Foo2.class})[] numbers; public Foo @SerSubclasses({Foo.class, Bar.class, Foo2.class}) numbers[]; ```