question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resteasy Reactive serializes objects differently than Resteasy

See original GitHub issue

Describe the bug

I have the following object which I return via a resource and serialize with Jackson.

With Resteasy the following JSON is generated:

{
   "name":"Quarkus T-Shirt",
   "price":{
      "amount":12,
      "currency":"EUR"
   }
}

But when I use Resteasy Reactive, the object is generated as follows:

{
   "name":"Quarkus T-Shirt",
   "price":{
      "amount":12,
      "currency":{
         "context":{
            "empty":false,
            "providerName":"java.util.Currency"
         },
         "defaultFractionDigits":2,
         "currencyCode":"EUR",
         "numericCode":978
      }
   }
}

Expected behavior

The JSON generated by Resteasy Reactive should look exactly like the one generated by Resteasy

Actual behavior

No response

How to Reproduce?

https://github.com/andlinger/quarkus-reproducer/tree/quarkus-23418-2

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

Tested with 2.7.0.Final and 2.6.3.Final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Feb 3, 2022

I’ll take a closer look tomorrow

0reactions
geoandcommented, Feb 4, 2022

NP

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing REST Services with RESTEasy Reactive - Quarkus
The JAXB resteasy reactive extension will serialize and unserialize requests and responses transparently for users. However, if you need finer ...
Read more >
RESTEasy JAX-RS - JBoss.org
RESTEasy is installed and configured in different ways depending on which environment you are running in. If you are running in WildFly, RESTEasy...
Read more >
Quarkus Mutiny + RESTEasy Reactive: What is actually ...
The problem is that quarkus-resteasy-reactive-jackson is not being used, therefore proper JSON integration is not present in the REST ...
Read more >
Chapter 2. Developing JAX-RS Web Services
These annotations simplify the process of mapping Java objects to web ... RESTEasy can automatically marshal and unmarshal a few different message bodies....
Read more >
Quarkus Insights #82: What's new in RESTEasy Reactive
Clement Escoffier @clementplop & Georgios Andrianakis @geoand stop by to discuss the latest changes to RESTEasy Reactive and Quarkus.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found