[ https://issues.apache.org/jira/browse/VELOCITY-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson closed VELOCITY-677. ----------------------------------- Resolution: Won't Fix Assignee: Claude Brisson Fix Version/s: 2.x The parser relies on the javacc 'MORE' feature, explicitly telling that **something** is needed after a $ or a #, so that $foo or #bar is a token in itself. So changing this behavior is almost like rewriting the parser from scratch. So I think there is no other choice than to consider that this constraint is part of the Velocity grammar. We should document it, though. All the affected character sequences: $ $! #[[ #** #* # > a '#' or '$' character at the end of VTL causes a ParseException > ---------------------------------------------------------------- > > Key: VELOCITY-677 > URL: https://issues.apache.org/jira/browse/VELOCITY-677 > Project: Velocity > Issue Type: Bug > Components: Engine > Affects Versions: 1.6, 1.6.1, 1.7 > Reporter: Byron Foster > Assignee: Claude Brisson > Priority: Minor > Fix For: 2.x > > > If either the character '#' or '$' is the last character in VTL, then the > following results: > Threw: class org.apache.velocity.exception.ParseErrorException > Msg: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical > error at line 4, column 2. Encountered: <EOF> after : "" > org.apache.velocity.Template.process(Template.java:142) > org.apache.velocity.runtime.resource.ResourceManagerImpl.refreshResource(ResourceManagerImpl.java:556) > > org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:319) > > org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1442) > > org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:319) > > org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:332) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org