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
Since sealed classes were included in the java 17 release as a stable feature, I think jackson should support them and automatically detect possible subtypes without the @JsonSubTypes annotation.
slutmaker
changed the title
Auto-detect java 17 sealed classes without manually specifying them in @JsonSubTypes
Auto-detect Java 17 sealed classes without manually specifying them in @JsonSubTypes
Sep 19, 2021
cowtowncoder
added
3.x
Issues to be only tackled for Jackson 3.x, not 2.x
and removed
to-evaluate
Issue that has been received but not yet evaluated
labels
Oct 15, 2021
Since
sealed classes
were included in the java 17 release as a stable feature, I think jackson should support them and automatically detect possible subtypes without the@JsonSubTypes
annotation.Usage example
Additional context
Similar issue for kotlin sealed classes:
FasterXML/jackson-module-kotlin#239
The text was updated successfully, but these errors were encountered: