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 #16905

Closed
aravindtga opened this issue Apr 29, 2021 · 1 comment · Fixed by #16907
Closed

Resteasy reactive - Handling Generics in request body #16905

aravindtga opened this issue Apr 29, 2021 · 1 comment · Fixed by #16907
Assignees
Labels
area/rest kind/bug Something isn't working
Milestone

Comments

@aravindtga
Copy link

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"
    }
}
@aravindtga aravindtga added the kind/bug Something isn't working label Apr 29, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Apr 29, 2021

/cc @FroMage, @geoand, @stuartwdouglas

@geoand geoand self-assigned this Apr 29, 2021
geoand added a commit to geoand/quarkus that referenced this issue Apr 29, 2021
geoand added a commit to geoand/quarkus that referenced this issue Apr 29, 2021
geoand added a commit to geoand/quarkus that referenced this issue May 5, 2021
FroMage added a commit that referenced this issue May 7, 2021
Fix generic type handling of body parameter in RESTEasy Reactive
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone May 7, 2021
@gsmet gsmet modified the milestones: 2.0 - main, 1.13.4.Final May 10, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue May 10, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants