Investigate Polymorphism In Jackson With Scala
Reported by Ben Hood | February 3rd, 2011 @ 09:20 AM
As part of #156, the CategoryDescriptor hierarchy was implemented in Java because there didn't seem to be a way to get this to work in Scala. Having said that, having this code in Java is highly undesirable. Furthermore, there are moves afoot in the community to improve Scala support with Jackson, so it may be a case that somebody else will fix this issue for us. However it may also be the case that we can find ancillary annotations for Scala types that correct the compiled code so that Jackson plays nicely.
As a further point, the fields of the Java classes were (unconventionally) declared as public, so that we wouldn't have to use Java style getters in the consuming Scala code.
Also - in the original Scala code, a CategoryDescriptor could deliver a default constraint for itself - this code was taken out because it would introduce a circular dependency between the Java and Scala code.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A Real Time Differencing Tool.
People watching this ticket
Tags
Referenced by
-
156
Implement ListQueryConstraints
This is part of #167
-
156
Implement ListQueryConstraints
This is also part of #167
-
156
Implement ListQueryConstraints
See #167