Skip to content

[682] Correct the fix for 670 and return the type if the type has alr…#683

Open
jamezp wants to merge 2 commits into
eclipse-ee4j:mainfrom
jamezp:issue682
Open

[682] Correct the fix for 670 and return the type if the type has alr…#683
jamezp wants to merge 2 commits into
eclipse-ee4j:mainfrom
jamezp:issue682

Conversation

@jamezp

@jamezp jamezp commented Sep 24, 2025

Copy link
Copy Markdown
Member

…eady been resolved.

resolves #682

…eady been resolved.

Signed-off-by: James R. Perkins <jperkins@ibm.com>

@KyleAure KyleAure left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix looks good.
I think all we are missing from the tests are appropriate de-serialization testing for the same scenario. This looks like common practice in this test class so I added those suggestions below.

Comment thread src/test/java/org/eclipse/yasson/defaultmapping/generics/GenericsTest.java Outdated
Comment thread src/test/java/org/eclipse/yasson/defaultmapping/generics/GenericsTest.java Outdated
Comment thread src/test/java/org/eclipse/yasson/defaultmapping/generics/model/TreeElement.java Outdated
Comment thread src/test/java/org/eclipse/yasson/defaultmapping/generics/model/TreeElement.java Outdated
Co-authored-by: Kyle Aure <KyleJAure@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serialization may throw an exception when a generic bound type is discovered, but not of type Class

2 participants