JSON Binding @JsonbTypeDeserializer annotation ignored on enums?
问题 I'm converting a JAXB application to JSON-B and I've run into an issue while trying to deserialize a Java enum using a custom JsonbDeserializer inside one of my tests. The original JSON I need to deserialize contains int s referencing the enum's constants. Therefore my custom JsonbDeserializer needs to take the int and return the enum constant with the matching ordinal . It looks like this: @JsonbTypeDeserializer(Region.RegionDeserializer.class) public enum Region implements BaseEnum { REGION