[ https://issues.apache.org/jira/browse/VELOCITY-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-855. ------------------------------------- Resolution: Fixed Assignee: Claude Brisson Fix Version/s: 2.1 Fixed by commit 1843836. > Only first static class in context available > -------------------------------------------- > > Key: VELOCITY-855 > URL: https://issues.apache.org/jira/browse/VELOCITY-855 > Project: Velocity > Issue Type: Bug > Components: Engine > Affects Versions: 1.7 > Environment: JDK 1.8.0_25 > Windows > Maven 3.2.1 > Reporter: Lewis Henderson > Assignee: Claude Brisson > Priority: Major > Fix For: 2.1 > > > java :- > Both classes are in the . > VelocityContext velocityContext = new VelocityContext(); > // Utility objects > velocityContext.put("elementKind", > javax.lang.model.element.ElementKind.class); > velocityContext.put("typeKind", javax.lang.model.type.TypeKind.class); > template.vm :- > $elementKind.valueOf("ENUM") > $typeKind.valueOf("DECLARED") > The second call fails. Commenting either works. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org