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 34689101DE for ; Wed, 10 Jul 2013 14:23:58 +0000 (UTC) Received: (qmail 48771 invoked by uid 500); 10 Jul 2013 14:23:57 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 48631 invoked by uid 500); 10 Jul 2013 14:23:57 -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 48622 invoked by uid 99); 10 Jul 2013 14:23:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 14:23:57 +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.219.49 as permitted sender) Received: from [209.85.219.49] (HELO mail-oa0-f49.google.com) (209.85.219.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 14:23:50 +0000 Received: by mail-oa0-f49.google.com with SMTP id n9so9603173oag.22 for ; Wed, 10 Jul 2013 07:23:29 -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=dxy3AoFu9yqsu9mtGYwXAVhpADT3IBDh4O1b6L5Tf6M=; b=OzmGuRPLCOh9Uc5gjQv1awhmpJm9buaHbfC7ZLCvbz0z2jIoIyMh92HLEiB7/lP2+5 g4cp9Tpr0VWmX1zusMNvNvx+nVhZnX77ump9Rk+fhV1gE0ga+s7sLN5VfcztVL8LCh9p 3Rx1829P62wMG4jOX6nzWmPVVHSIyOX8BnqrFkgpKWQ9mneNzZh2MRL54vV8cFQfycka bpseJisGT4i6NWMJj5xFIkB7ZDrs9ZRZFhdCjM1wL3cZ0h8jQPND0gRjUd1J3Gl6ne9h 78Kz7wMbC5ERUg6Jwfh7VUwYkRHyn8YUZc5j9DuvTMyo2K56xaUIShuBMITlEyl58hnO 4epw== MIME-Version: 1.0 X-Received: by 10.182.87.3 with SMTP id t3mr28326150obz.4.1373466209800; Wed, 10 Jul 2013 07:23:29 -0700 (PDT) Received: by 10.76.70.198 with HTTP; Wed, 10 Jul 2013 07:23:29 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Jul 2013 18:23:29 +0400 Message-ID: Subject: Re: javax.el.ListELResolver.isReadOnly From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2013/7/10 Violeta Georgieva : > Hi, > > In the javadoc it is not described that the method throws IAE when the > property cannot be coerced into an integer. Moreover it is specified that > the property will be ignored by the resolver: > > " > property - The index of the element in the list to return the acceptable > type for. Will be coerced into an integer, but otherwise ignored by this > resolver. > " > > Should we return the corresponding readOnly result and not throw IAE? > If it is a non-integer property, just ignore it. For example, in Javascript a list has both indexes and a "length" property. The "length" property should be silently ignored by ListELResolver. It is the task of other resolvers (e.g. BeanELResolver) to handle it. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org