JSON-B transient and property annotation collide #13640
Labels
bug
This bug is not present in a released version of Open Liberty
Needs member attention
team:Zombie Apocalypse
When mapping a class via JSON-B, and annotating fields as follows, the result throws an error because of mismatching types:
this results in:
If both properties
order
andorderLink
have the same type, it works as expected (i.e.orderLink
is serialized as"order"
).However, if we annotate
@JsonbProperty
on the setter instead, it works:Response:
There seems to be an unexpected type link of the (ignored) property with the default serialized JSON key
"order"
, and the custom name binding.Tested with
Open Liberty 20.0.0.8/wlp-1.0.43.cl200820200721-1900 on Eclipse OpenJ9 VM, version 14+36
The text was updated successfully, but these errors were encountered: