You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was debugging this and with the abstract class it is analyzed twice, one for the abstract and other for the anonymous class.
In the abstract class it is able to find the JsonbTransient but it is not getting that from the anonymous class that extends the abstract class. This org.eclipse.yasson.internal.model.JsonbAnnotatedElement#getAnnotations() returns empty array
For the interface, it is analyzed only one time, having that annotation.
I guess the fix is about getting the annotations from the parent classes too.
jbescos
added a commit
to jbescos/yasson
that referenced
this issue
Aug 24, 2022
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:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: