[ 
https://issues.apache.org/jira/browse/JOHNZON-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Marwell updated JOHNZON-386:
-------------------------------------
    Description: 
When you have a hierarchy of TypeAdapters, the concrete TypeAdapter is not 
being recognized as such, unless you repeat the `implements JsonbAdater` 
statement.

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.

  was:
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.


> 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
>            Priority: Major
>   Original Estimate: 1h
>          Time Spent: 10m
>  Remaining Estimate: 50m
>
> When you have a hierarchy of TypeAdapters, the concrete TypeAdapter is not 
> being recognized as such, unless you repeat the `implements JsonbAdater` 
> statement.
> 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