Details
-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
Description
Using Jackson provider, the JAXB @XmlTransient annotation works fine for XML responses, but doesn't for JSON.
With the following JAXB class:
private String ignored; @XmlTransient public String getIgnored() { return ignored; }
for "application/xml" I got:
<return> <message> <content>Goodbye, RESTEasy!</content> </message> </return>
but for "application/json" I got:
{ "message" : { "content" : "Hello, RESTEasy!", "ignored" : "Ignore me!!!" } }
This issue happens only with RESTEasy 2.x. I confirmed it doesn't happen with RESTEasy 3.x.