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
As mentioned in yasson/pull/280
and shown by the currently ignored unit test method
"AnnotationIntrospectorTest.testNoArgConstructorShouldBePreferredOverUnusableJsonbAnnotatedProtectedConstructor",
inaccessible constructors lead to an error, even if there is also an valid standard no-arg constructor.
This is a cause of using "creators" (e.g. constructors) if they exist,
even if they can't be used at the end.
I guess, this is something to discuss, since the specification seems not to be that clear IMO, how it "should" be.
The text was updated successfully, but these errors were encountered:
JohT
changed the title
@JsonbCreator-annotated inaccessible constructors with an additional valid no-arg constructor
@JsonbCreator-annotated inaccessible constructors shouldn't overrule no-arg constructor
Sep 4, 2019
Yes, I agree that the spec is bit loose in this area. We are currently collecting suggestions for JSONB.next in JSONB API issues tracker. Feel free to make your suggestions there.
Dmitry is right that this should be considered at the spec level. I've adjusted this spec-level issue to also include what is being asked for here: jakartaee/jsonb-api#61
As mentioned in yasson/pull/280
and shown by the currently ignored unit test method
"AnnotationIntrospectorTest.testNoArgConstructorShouldBePreferredOverUnusableJsonbAnnotatedProtectedConstructor",
inaccessible constructors lead to an error, even if there is also an valid standard no-arg constructor.
This is a cause of using "creators" (e.g. constructors) if they exist,
even if they can't be used at the end.
I guess, this is something to discuss, since the specification seems not to be that clear IMO, how it "should" be.
The text was updated successfully, but these errors were encountered: