falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karishma Gulati (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FALCON-1152) Names of Xml attributes and Class member variables are inconsistent
Date Fri, 10 Apr 2015 11:57:13 GMT
Karishma Gulati created FALCON-1152:
---------------------------------------

             Summary: 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


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