Return-Path: Delivered-To: apmail-velocity-dev-archive@www.apache.org Received: (qmail 84387 invoked from network); 1 Oct 2008 21:54:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2008 21:54:08 -0000 Received: (qmail 39070 invoked by uid 500); 1 Oct 2008 21:54:05 -0000 Delivered-To: apmail-velocity-dev-archive@velocity.apache.org Received: (qmail 39053 invoked by uid 500); 1 Oct 2008 21:54:05 -0000 Mailing-List: contact dev-help@velocity.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Velocity Developers List" Delivered-To: mailing list dev@velocity.apache.org Received: (qmail 39035 invoked by uid 500); 1 Oct 2008 21:54:05 -0000 Delivered-To: apmail-jakarta-velocity-dev@jakarta.apache.org Received: (qmail 39031 invoked by uid 99); 1 Oct 2008 21:54:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2008 14:54:05 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2008 21:53:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 71C7B234C210 for ; Wed, 1 Oct 2008 14:53:44 -0700 (PDT) Message-ID: <1287991226.1222898024464.JavaMail.jira@brutus> Date: Wed, 1 Oct 2008 14:53:44 -0700 (PDT) From: "Nathan Bubna (JIRA)" To: velocity-dev@jakarta.apache.org Subject: [jira] Updated: (VELOCITY-620) Parse error creates an obscure error message In-Reply-To: <2084221819.1222850864484.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/VELOCITY-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nathan Bubna updated VELOCITY-620: ---------------------------------- Attachment: Velocity620TestCase.java For the first of your examples, 1.6-dev (with the standard velocity.properties) works fine, and for the second, i get this helpful error: org.apache.velocity.exception.ParseErrorException: Encountered "=" at line 1, column 9 of #if ($x = "a") #end Was expecting one of: ... "-" ... "+" ... "*" ... "/" ... "%" ... ... ... ... ... ... ... ... ... > Parse error creates an obscure error message > -------------------------------------------- > > Key: VELOCITY-620 > URL: https://issues.apache.org/jira/browse/VELOCITY-620 > Project: Velocity > Issue Type: Bug > Components: Engine > Affects Versions: 1.6 > Reporter: Byron Foster > Fix For: 1.6 > > Attachments: Velocity620TestCase.java > > > The following incorrect velocity usage: > #macro(foo $a) > blaa > #end > #foo("b" "c") > or ... > #if ($x = "a") > #end > will create the obscure error message in the exception: > > Bad Reference "null" in /foo.vm:18 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org For additional commands, e-mail: dev-help@velocity.apache.org