Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A05B17F26 for ; Fri, 10 Apr 2015 11:57:35 +0000 (UTC) Received: (qmail 33582 invoked by uid 500); 10 Apr 2015 11:57:35 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 33540 invoked by uid 500); 10 Apr 2015 11:57:35 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 33529 invoked by uid 99); 10 Apr 2015 11:57:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 11:57:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 10 Apr 2015 11:57:34 +0000 Received: (qmail 31521 invoked by uid 99); 10 Apr 2015 11:57:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 11:57:13 +0000 Date: Fri, 10 Apr 2015 11:57:13 +0000 (UTC) From: "Karishma Gulati (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FALCON-1152) Names of Xml attributes and Class member variables are inconsistent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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)