Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9986319ECA for ; Wed, 30 Mar 2016 12:44:36 +0000 (UTC) Received: (qmail 53665 invoked by uid 500); 30 Mar 2016 12:44:35 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 53632 invoked by uid 500); 30 Mar 2016 12:44:35 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 53621 invoked by uid 99); 30 Mar 2016 12:44:35 -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, 30 Mar 2016 12:44:35 +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 C68421802E7 for ; Wed, 30 Mar 2016 12:44:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-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 2xabKiuISVs5 for ; Wed, 30 Mar 2016 12:44:33 +0000 (UTC) Received: from kmx10a.knipp.de (clust3a.bbone.knipp.de [195.253.6.83]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 38A1F5F3F0 for ; Wed, 30 Mar 2016 12:44:33 +0000 (UTC) Received: from localhost (localhost.bbone.knipp.de [127.0.0.1]) by kmx10a.knipp.de (Postfix) with ESMTP id 100A153 for ; Wed, 30 Mar 2016 14:44:26 +0200 (MESZ) X-Knipp-VirusScanned: Yes Received: from kmx10a.knipp.de ([127.0.0.1]) by localhost (kmx10a.knipp.de [127.0.0.1]) (amavisd-new, port 10004) with ESMTP id rEn20c4bB+sJ for ; Wed, 30 Mar 2016 14:44:18 +0200 (MESZ) Received: from hp9000.do.knipp.de (hp9000.do.knipp.de [195.253.2.54]) by kmx10a.knipp.de (Postfix) with ESMTP id 6934650 for ; Wed, 30 Mar 2016 14:44:18 +0200 (MESZ) Received: from [195.253.2.225] (mordor.do.knipp.de [195.253.2.225]) by hp9000.do.knipp.de (@(#)Sendmail version 8.13.3 - Revision 1.000 - 1st August,2006/8.13.3) with ESMTP id u2UCiHsL024532 for ; Wed, 30 Mar 2016 14:44:18 +0200 (MESZ) Subject: Different name mapping in Struts 2.3.28 (was Re: [ANN] Apache Struts 2.3.28 GA) To: user@struts.apache.org References: From: Markus Fischer X-Enigmail-Draft-Status: N1110 Message-ID: <56FBC9FE.4030206@knipp.de> Date: Wed, 30 Mar 2016 14:43:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi all, after migrating from Struts 2.3.24.1 to 2.3.28, I get several FreeMarker template errors for missing/null elements for expressions that worked fine before, like this: > FreeMarker template error > > The following has evaluated to null or missing: > ==> iPhone [in template "..." at line X, column Y] What the problematic expressions have in common is that the Java methods they refer to have camel case names with (at least?) two consecutive upper case letters, as in "isIPhone". This seems to be mapped in a different way with Struts 2.3.28 than it has been before. (See below for two examples of the different mapping behaviour in Struts 2.3.24.1 and 2.3.28). My question is: Is this a bug? Or is this something that was introduced intentionally to comply with some standard or convention? Examples for Freemarker expression evaluation ==> iPhone (Method name: isIPhone) Expr. | 2.3.24.1 | 2.3.28 iPhone | OK | error IPhone | OK | OK ==> hCardElements (getHCardElements) Expression | 2.3.24.1 | 2.3.28 hCardElements | OK | error HCardElements | OK | OK TIA Markus --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org