From issues-return-66312-archive-asf-public=cust-asf.ponee.io@commons.apache.org Wed Feb 7 11:10:03 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id EB2D518065B for ; Wed, 7 Feb 2018 11:10:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D80B7160C5C; Wed, 7 Feb 2018 10:10:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 29DA5160C3C for ; Wed, 7 Feb 2018 11:10:03 +0100 (CET) Received: (qmail 96407 invoked by uid 500); 7 Feb 2018 10:10:02 -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 96386 invoked by uid 99); 7 Feb 2018 10:10:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2018 10:10:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C9A4A180282 for ; Wed, 7 Feb 2018 10:10:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id d_8TcfhqsXgM for ; Wed, 7 Feb 2018 10:10:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C2EE65F11F for ; Wed, 7 Feb 2018 10:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5DC74E0047 for ; Wed, 7 Feb 2018 10:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2329121301 for ; Wed, 7 Feb 2018 10:10:00 +0000 (UTC) Date: Wed, 7 Feb 2018 10:10:00 +0000 (UTC) From: "Henri Biestro (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (JEXL-252) Allow for interpolated strings to be used in property access operators MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JEXL-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Biestro resolved JEXL-252. -------------------------------- Resolution: Fixed Committed https://github.com/apache/commons-jexl/commit/2aa8022c4c330a8640c7d5415d53ab5d3ab71733 > Allow for interpolated strings to be used in property access operators > ---------------------------------------------------------------------- > > Key: JEXL-252 > URL: https://issues.apache.org/jira/browse/JEXL-252 > Project: Commons JEXL > Issue Type: New Feature > Affects Versions: 3.1 > Reporter: Dmitri Blinov > Assignee: Henri Biestro > Priority: Minor > Fix For: 3.2 > > > Now we have a possibility to access an object property by specifying either {code}object.property{code} or {code}object."property"{code} expression, but not {code}object.`property`{code} expression. Since interpolated strings can be used anywhere in scripts as ordinal strings, it would be logical to allow them to be used in property access operators too. It would allow to have the property name not necessarily to be a constant, but to be evaluated without using the array access operator, since property access operator and array access operator could be implemented (overloaded) differently for the object. -- This message was sent by Atlassian JIRA (v7.6.3#76005)