falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suhas Vasu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1152) Names of Xml attributes and Class member variables are inconsistent
Date Thu, 16 Apr 2015 13:17:59 GMT

    [ 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)

Mime
View raw message