Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6631FDDAE for ; Sat, 1 Sep 2012 00:55:39 +0000 (UTC) Received: (qmail 37735 invoked by uid 500); 1 Sep 2012 00:55:38 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 37670 invoked by uid 500); 1 Sep 2012 00:55:38 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 37658 invoked by uid 99); 1 Sep 2012 00:55:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 00:55:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vb0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Sep 2012 00:55:31 +0000 Received: by vbip1 with SMTP id p1so4719582vbi.18 for ; Fri, 31 Aug 2012 17:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0Qvg9eyB+ii0by1E9kI+oGopennzDBmbVC0O+tzorZc=; b=0bGaNYMpqT9jB1kVBabUrMIW6hcFUVfHz6+p/F85o0HLKOW5zYfjLICOHSOSTckn2o XNt5Nbf+mXAqBxheJy4xU/crpxGI07Yl39QZIZl1dymZOsGY98ylS/JCHfC3/JsD6RPH iszp88LeYlUahOoIRYSxKHaWCpPCu9L94o0p59F+MkGsU6kRguSHBcfKYZ581LHkdu0I kP33CUarxd7+1qqcdFnMhaDZ0p6l05j6KMf660QFMU1DXWucbVvZB5oi3kty/zBhYIMe rMevXS2t7g/ZLhIlODcnm/nbvnyDcq2DOgo5X4TMm/h0CAyvmTegQujqoANxt27Luwr3 TTnw== MIME-Version: 1.0 Received: by 10.220.149.206 with SMTP id u14mr6927982vcv.63.1346460910217; Fri, 31 Aug 2012 17:55:10 -0700 (PDT) Received: by 10.58.26.233 with HTTP; Fri, 31 Aug 2012 17:55:10 -0700 (PDT) In-Reply-To: <50411F95.8070208@apache.org> References: <20120830194447.15A1E2388980@eris.apache.org> <50411F95.8070208@apache.org> Date: Sat, 1 Sep 2012 04:55:10 +0400 Message-ID: Subject: Re: svn commit: r1379091 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/el/parser/AstValue.java test/org/apache/el/TestMethodExpressionImpl.java From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 2012/9/1 Mark Thomas : > On 31/08/2012 12:37, Konstantin Kolinko wrote: >> 2012/8/30 : >>> Author: markt >>> Date: Thu Aug 30 19:44:46 2012 >>> New Revision: 1379091 >>> >>> URL: http://svn.apache.org/viewvc?rev=1379091&view=rev >>> Log: >>> Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=53792 >>> Support method expressions that include a method call that is not at the end of the expression >>> >>> Modified: >>> tomcat/tc7.0.x/trunk/ (props changed) >>> tomcat/tc7.0.x/trunk/java/org/apache/el/parser/AstValue.java >>> tomcat/tc7.0.x/trunk/test/org/apache/el/TestMethodExpressionImpl.java >>> >>> --- tomcat/tc7.0.x/trunk/java/org/apache/el/parser/AstValue.java (original) >>> +++ tomcat/tc7.0.x/trunk/java/org/apache/el/parser/AstValue.java Thu Aug 30 >>> ctx.setPropertyResolved(false); >> >> The above was previously called before calling resolver.getValue(), >> but now it is not called neither before resolver.invoke(), nor before >> resolver.getValue(). > > The calls are unnecessary. The CompositeELResolver sets the property to > false at the start of both of those methods and the Resolver > implementations are responsible for setting it if they find a match. This relies on the fact that ELContext.getResolver() is an instance of CompositeELResolver. Other resolvers do not set this flag to false. The API itself (ELContext, ELContextImpl(ELResolver)) allows any resolver type. Though it would seem strange if one uses a non-CompositeELResolver here, as this would omit some features of the EL language. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org