You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2003/09/08 19:07:20 UTC
DO NOT REPLY [Bug 22998] New: -
Macro names that start with the 'set' cause VTL parse errors
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22998>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22998
Macro names that start with the 'set' cause VTL parse errors
Summary: Macro names that start with the 'set' cause VTL parse
errors
Product: Velocity
Version: 1.3.1
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Source
AssignedTo: velocity-dev@jakarta.apache.org
ReportedBy: jstillm@cbc-companies.com
The VTL parser does not differentiate between a macro name that starts with the
word 'set' and the '#set' directive.
Example:
#macro( setPageAttributes )
...
#end
Using #setPageAttributes() results in a Velocity parse error (as follows).
Encountered "PageAttributes" at line ..., column ....
Was expecting one of:
"(" ...
<WHITESPACE> ...