Skip to content

Conversation

@dblevins
Copy link
Contributor

@dblevins dblevins commented May 6, 2025

When using Field injection, null (missing) json values are naturally tolerated.

When using Constructor inject, null (missing) json values are explicitly tolerated in MappingParserImpl.toObject. However, if an adapter was specified, MappingParserImpl.convertTo would throw a null pointer as it did not have the same code to deal with null values.

Null was tolerated if no Adapter was used
@dblevins
Copy link
Contributor Author

dblevins commented May 6, 2025

"Missing json values fail when using @JsonbCreator and @JsonbTypeAdapter"
https://issues.apache.org/jira/browse/JOHNZON-413

@jungm jungm merged commit e75e87e into apache:master May 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants