Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 147C2181E1 for ; Thu, 9 Jul 2015 09:26:05 +0000 (UTC) Received: (qmail 58683 invoked by uid 500); 9 Jul 2015 09:26:04 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 58579 invoked by uid 500); 9 Jul 2015 09:26:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 58455 invoked by uid 99); 9 Jul 2015 09:26:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 09:26:04 +0000 Date: Thu, 9 Jul 2015 09:26:04 +0000 (UTC) From: "Dmitri Blinov (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (JEXL-161) Assignment to Indexed property is broken in 3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dmitri Blinov created JEXL-161: ---------------------------------- Summary: Assignment to Indexed property is broken in 3.0 Key: JEXL-161 URL: https://issues.apache.org/jira/browse/JEXL-161 Project: Commons JEXL Issue Type: Bug Affects Versions: 3.0 Reporter: Dmitri Blinov In JEXL 2.1.1 the assignment of XML attribute to org.w3c.dom.Element via setAttribute(java.lang.String name, java.lang.String value) method worked as suggested - indexed property was resolvable and assignable. In JEXL 3.0 this is broken - unsolvable property 'ConfigSetNo'. By peeping to Uberspect.java I noticed that the following method public JexlPropertySet getPropertySet(final Object obj, final Object identifier, Object arg) does not contain any references to IndexedType class to resolve indexed property when assigning. As it works correctly in 2.1 I do not see any reason for this to be as by design, so I classify this as a bug. The example of JEXL script, sorry I haven't figure out how to provide full test case here: x = xml:child(doc, 'ConfigSet'); x.attribute.ConfigSetNo = '123'. -- This message was sent by Atlassian JIRA (v6.3.4#6332)