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)

Reply via email to