I need a sanity check. I tested this with an unmodified checkout from
svn:
URL: http://svn.apache.org/repos/asf/velocity/engine/trunk
Last Changed Author: nbubna
Last Changed Rev: 700847
Last Changed Date: 2008-10-01 10:39:45 -0700 (Wed, 01 Oct 2008)
This is the latest as of now on trunk. I tested the below case with
no velocity properties set (running with defaults), and I still get my
original reported results (Bad Reference "null"). In fact, I tracked
down the problem (An exception was getting dropped). So I'm
wondering if we are looking at the same source base, or maybe there is
still some condition in my environment that is not in yours. Can you
verify that you are using the same source snapshot as myself?
On Oct 1, 2008, at 14:53 , Nathan Bubna (JIRA) wrote:
[ 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:
<RPAREN> ...
"-" ...
"+" ...
"*" ...
"/" ...
"%" ...
<LOGICAL_AND> ...
<LOGICAL_OR> ...
<LOGICAL_LT> ...
<LOGICAL_LE> ...
<LOGICAL_GT> ...
<LOGICAL_GE> ...
<LOGICAL_EQUALS> ...
<LOGICAL_NOT_EQUALS> ...
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]