Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.1, 1.2
-
Fix Version/s: 1.3.3
-
Labels:None
-
Environment:Linux, JBoss
-
Number of attachments :
Description
Consider the following class:
@XmlRootElement(name="moduleLinks")
public static class ModuleLinkSet
Given an object of this class where installations contains two objects that serialize to
{id:1}and
{id:2}, and modules contain two objects that serialize to
{id:3}and
{id:4}, I was expecting a JSON serialization like
{
moduleLinks: {
installation: [
,
{id:2} ],
module: [
,
{id:4} ]
}
}
What I actually get is
{
moduleLinks: {
installation: [
,
{id:2}, {module:{id:3}}, {module:{id:4}} ]
}
}
This looks very wrong to me.