From adffaces-issues-return-1810-apmail-incubator-adffaces-issues-archive=incubator.apache.org@incubator.apache.org Thu Feb 22 06:57:39 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-issues-archive@locus.apache.org Received: (qmail 66423 invoked from network); 22 Feb 2007 06:57:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2007 06:57:36 -0000 Received: (qmail 85505 invoked by uid 500); 22 Feb 2007 06:57:38 -0000 Delivered-To: apmail-incubator-adffaces-issues-archive@incubator.apache.org Received: (qmail 85491 invoked by uid 500); 22 Feb 2007 06:57:38 -0000 Mailing-List: contact adffaces-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-issues@incubator.apache.org Delivered-To: mailing list adffaces-issues@incubator.apache.org Received: (qmail 85479 invoked by uid 99); 22 Feb 2007 06:57:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 22:57:37 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 22:57:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B972F7141B8 for ; Wed, 21 Feb 2007 22:57:05 -0800 (PST) Message-ID: <31141763.1172127425757.JavaMail.jira@brutus> Date: Wed, 21 Feb 2007 22:57:05 -0800 (PST) From: =?utf-8?Q?Matthias_We=C3=9Fendorf_=28JIRA=29?= To: adffaces-issues@incubator.apache.org Subject: [jira] Assigned: (ADFFACES-320) Obfuscation of addition statement where one of the items being added is an increment statement In-Reply-To: <29583818.1165339821057.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ADFFACES-320?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthias We=C3=9Fendorf reassigned ADFFACES-320: ------------------------------------------- Assignee: Adam Winer > Obfuscation of addition statement where one of the items being added is a= n increment statement > -------------------------------------------------------------------------= --------------------- > > Key: ADFFACES-320 > URL: https://issues.apache.org/jira/browse/ADFFACES-320 > Project: MyFaces ADF-Faces > Issue Type: Bug > Components: Build > Environment: maven-javascript-plugin > Reporter: Matt Cooper > Assigned To: Adam Winer > Priority: Minor > Attachments: obfuscator.plugin.patch, obfuscator.plugin2.patch > > > If you have JavaScript code like the following: > var x =3D 1; > var y =3D "" + ++x; > It is a legal operation. However, if this code is run through the maven-= javascript-plugin, the second line becomes something like this: > var y=3D""+++x; > This yields an invalid increment operand. Instead, the space between the= "+" and the "++" must be preserved. I also suspect (but have not tested) = this may be a problem with this code too: > var a =3D 1; > var b =3D a++ + ""; > I suspect the increment and the decrement tokens in the obfuscater just n= eed to be tagged as space sensitive (both before and after)--so we don't re= move the spaces when compacting the code. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.