[ https://issues.apache.org/jira/browse/VELOCITY-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Schmiedehausen closed VELOCITY-111. ------------------------------------------- > Velocity Macro names can't start with 'set' > ------------------------------------------- > > Key: VELOCITY-111 > URL: https://issues.apache.org/jira/browse/VELOCITY-111 > Project: Velocity > Issue Type: Bug > Components: Engine > Affects Versions: 1.3-rc1 > Environment: Operating System: All > Platform: PC > Reporter: Erik Wright > Assigned To: Velocity-Dev List > Fix For: 1.4 > > > I created a velocity macro called setDAOFromPrimitive and called it from a > .vm > template file. > ---------- > #macro ( setDAOFromPrimitive $vmdao $vmcol $vmprim ) > ## ... > #end > ## ... > #setDAOFromPrimitive ("m_dao" $col $ptype) > -------- > Parsing the template using velocity generates the following error: > --- > 2002-10-23 17:45:00,684 - ResourceManager.getResource() parse exception: > org.apache.velocity.exception.ParseErrorException: > Encountered "DAOFromPrimitive" at line 205, column 11. > Was expecting one of: > "(" ... > <WHITESPACE> ... > --- > It seems velocity treats any instance of "#set" as a property assignment, > even > if the name contains more characters. The workaround is to change the macro > name. > BTW I'm using the velocity-1.3.jar that ships with torque-3.0-b4. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]