You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Benjamin Marwell (Jira)" <ji...@apache.org> on 2022/07/19 10:21:00 UTC

[jira] [Created] (JOHNZON-386) Johnzon-JSONB does not receognized inherited `implements JsonbAdapter`

Benjamin Marwell created JOHNZON-386:
----------------------------------------

             Summary: Johnzon-JSONB does not receognized inherited `implements JsonbAdapter`
                 Key: JOHNZON-386
                 URL: https://issues.apache.org/jira/browse/JOHNZON-386
             Project: Johnzon
          Issue Type: Bug
          Components: JSON-B
            Reporter: Benjamin Marwell


When you have a hierarchy of TypeAdapters, the concrete TypeAdapter is not being recognized as such, unless you repeat the `implements JsonbAdater` statement.
This violates DRY.

Yasson does recognized an inherited `implements JsonbAdapter`.

Thrown exception:

{code:java}
java.lang.IllegalArgumentException: org.apache.johnzon.jsonb.JsonbAdapterTest$ColorIdAdapter@65c98c57 doesn't implement JsonbAdapter
{code}

PR is on it's way.

I have not checked spec compliance.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)