[ https://issues.apache.org/jira/browse/FALCON-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ajay Yadava updated FALCON-1152: -------------------------------- Attachment: FALCON-1152.patch > Names of Xml attributes and Class member variables are inconsistent > -------------------------------------------------------------------- > > Key: FALCON-1152 > URL: https://issues.apache.org/jira/browse/FALCON-1152 > Project: Falcon > Issue Type: Bug > Components: client, general > Affects Versions: trunk > Environment: QA > Reporter: Karishma Gulati > Assignee: Ajay Yadava > Attachments: FALCON-1152.patch > > > In two classes, i.e., FeedLookupResult.java : > {code} > @XmlElement(name = "feed") > private FeedProperties[] elements; > {code} > and InstancesResult.java > {code} > @XmlElement(name="params") > public KeyValuePair[] wfParams; > {code} > the XML elements are of a different name from the class member variable > names. So, when writing regression, when we use Gson to convert the json > response to a class object, getElements( ) in FeedLookupResult.java gives > null, even if there is feed information present in the Json response. > The same is true for getWfParams( ) in InstancesResult.java as well -- This message was sent by Atlassian JIRA (v6.3.4#6332)