You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Suhas Vasu (JIRA)" <ji...@apache.org> on 2015/04/16 15:17:59 UTC
[jira] [Commented] (FALCON-1152) Names of Xml attributes and Class
member variables are inconsistent
[ https://issues.apache.org/jira/browse/FALCON-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498039#comment-14498039 ]
Suhas Vasu commented on FALCON-1152:
------------------------------------
+1
> 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)