jakartaee / jakartaee/jsonb-api

JsonbProperty and JsonbNillable together not functioning

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
95
Forks
41
Avg merge
1d 6h
Merged PRs (30d)
35

Description

If @JsonbPreoprty(nillable) is deprecated, what is the proper usage to use both @JsonbProperty and @JsonbNillable? I have tried several different combination with none of them working. We have an instance where overriding the field value and applying nillable are both wanted. It works with using @JsonbProperty(value,nillable), however, the project then produces a ton of deprecated warnings.

Also, I have had a StackOverflow post with more information .
https://stackoverflow.com/questions/74575063/java-jsonb-jsonbnillable-not-functioning-as-expected

Any assistance is welcomed.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported combination of @JsonbProperty and @JsonbNillable, then read the linked Stack Overflow post for the additional reproduction details. Check how the two annotations are defined and intended to interact; the work is complete when their supported usage or incompatibility is clearly established and the issue's deprecation concern is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.