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
@JsonbTransient is mutually exclusive with all other JSON Binding defined annotations. That is, when this annotation is present on a class field, then there should be no other annotations on that class field.
Thanks @adit333, from the spec: If a class field is annotated with @JsonbTransient, exception is thrown when this field, getter or setter is annotated with other JSON Binding annotations.
Can you please clarify/list what the other JSON Binding annotations the diagnostic would check for?
Also consider that a quick-fix could be offered to fix this diagnostic:
Remove the @JsonbTransient annotation
Remove all JSON Binding annotations but the @JsonbTransient annotation
Description:
@JsonbTransient is mutually exclusive with all other JSON Binding defined annotations. That is, when this annotation is present on a class field, then there should be no other annotations on that class field.
Specification:
Acceptable:
Error:
JsonbTransient Annotation
Specifically, when
@JsonbTransient
annotation is present on a field, the following annotations should not be there on the same field:Type of language feature proposed:
Select all that apply
The text was updated successfully, but these errors were encountered: