You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project I've recently changed from POJO to Immutables.org. As far as I got, java-dirty doesn't support it. It would be great to support Immutables.org or custom (de)serialization.
Thanks!
Jan
The text was updated successfully, but these errors were encountered:
Immutables.org then as a port of java compilation generates ImmutableEvent.java and it is compiled. This ImmutableEvent is standard class extending Event.
When I use directly Event.class in Store.of(), it doesn't know how to handle abstract class. If I use ImmutableEvent.class than I get this error.
java.lang.IllegalAccessException: Class uk.co.probablyfine.dirty.Store can not access a member of class xxx.yyy.zzz.ImmutableEvent with modifiers "private final"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
at java.lang.reflect.Field.get(Field.java:390)
at uk.co.probablyfine.dirty.Store.lambda$null$2(Store.java:60)
at uk.co.probablyfine.dirty.utils.Exceptions.unchecked(Exceptions.java:20)
Does java-dirty support custom Java objects serialization? Also my Event object has another object (also Immutable) as an attribute (getPayload()), so that the serialized form size can change depending on type of payload object.
Hi!
In my project I've recently changed from POJO to Immutables.org. As far as I got, java-dirty doesn't support it. It would be great to support Immutables.org or custom (de)serialization.
Thanks!
Jan
The text was updated successfully, but these errors were encountered: