I found an issue when trying to deserialize an IonValue embedded in a pojo. The conditons I've found that are required to hit it:
Must be deserializing to Ion
Must have @JsonTypeInfo annotation on the class (or on a super class) that specifies the type in a property.
The type attribute must come after other attributes of the struct. Anything before the type attribute will be lost during deserialization.
When I've walked through this with a debugger, I found something suspicious happening at this line. I found it was creating a sequence of a json and ion parser and started using the json parser once the type was identified.
I found an issue when trying to deserialize an IonValue embedded in a pojo. The conditons I've found that are required to hit it:
@JsonTypeInfo
annotation on the class (or on a super class) that specifies the type in a property.When I've walked through this with a debugger, I found something suspicious happening at this line. I found it was creating a sequence of a json and ion parser and started using the json parser once the type was identified.
This may be related to https://github.com/FasterXML/jackson-dataformats-binary/issues/149 .
Code to reproduce:
Tested with the following dependencies: