jakartaee / jakartaee/jsonb-api

Support getter-only list.

Open
#334 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
95
Forks
41
Avg merge
1d 6h
Merged PRs (30d)
35

Description

Apologies whenever this issue is not appropriate.

May I have a chance of deserializing a collection field using a getter only?

```java

public List getSome() { // JAXB used to work with this.
if (some == null) {
some = new ArrayList<>();
}
return some;
}

//public void setSome(List some) {
// this.some = some;
//}

private List some;
```

Thank you.

Contributor guide

Open the contributing guide

Research direction

The issue names no source files or tests. Start by locating JSON-B collection deserialization and how getter-only properties are discovered, then check the relevant specification or implementation entry point. Done means a getter-only List can be populated during deserialization, with a regression test covering the example behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.