Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resteasy reactive - Handling Generics in request body #330

Closed
snowdrop-bot opened this issue Apr 29, 2021 · 0 comments
Closed

Resteasy reactive - Handling Generics in request body #330

snowdrop-bot opened this issue Apr 29, 2021 · 0 comments
Assignees
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository

Comments

@snowdrop-bot
Copy link
Collaborator

Describe the bug

Generics arguments are not getting mapped properly from request and throwing the below exception

java.lang.ClassCastException: class java.util.HashMap cannot be cast to class org.generictype.Item 
        (java.util.HashMap is in module java.base of loader 'bootstrap'; org.generictype.Item is in unnamed module of loader 
        io.quarkus.bootstrap.classloading.QuarkusClassLoader @1e1e0d04)

Quarkus version: 1.13.3.Final
Zulip discussion: Discussion

To Reproduce

Reproducer link:
https://github.com/aravindtga/Quarkus-generic-request-body-jsonb

Steps to reproduce the behavior:

  1. Run the provided application
  2. Hit the endpoint "/endpoint" with the request body
{
    "content": {
        "name":"firstname",
        "email":"myemail"
    }
}

quarkusio#16905


$upstream:16905$

@snowdrop-bot snowdrop-bot added the upstream/closed The issue has been closed in the upstream repository label May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository
Projects
None yet
Development

No branches or pull requests

2 participants