eclipse-ee4j / eclipse-ee4j/yasson

@JsonbTransient does not work on abstract classes

Open
#454 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
218
Forks
109
Avg merge
1d 5h
Merged PRs (30d)
9

Description

**Describe the bug**

@JsonbTransient work on interfaces but not on abstract classes.

**To Reproduce**
reproducer:

https://github.com/rmanibus/quarkus_12926

**Expected behavior**
Fields annotated with @JsonbTransient are ignored.

**System information:**
- OS: [e.g. Linux, Windows, Mac]
- Java Version: [e.g. 8, 11]
- Yasson Version: [e.g. 1.0.5]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by running the reproducer at https://github.com/rmanibus/quarkus_12926 and compare @JsonbTransient behavior on interfaces and abstract classes. Trace the relevant Yasson handling for annotated fields, then add or locate a regression test demonstrating that fields on abstract classes are ignored as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Bug
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.