Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jakarta-velocity Wiki" for change notification.
The following page has been changed by WillGlassHusain: http://wiki.apache.org/jakarta-velocity/Velocity15ReleaseNotes ------------------------------------------------------------------------------ * Velocity singleton and engine will attempt to auto-init() when reasonable and possible instead of throwing NPEs when used without calling init() first. * Anakia generates consistent line endings on Windows platforms. * Fixed error in which Velocity would complain if the template ended with "##". + * Fixed race condition in template retrieval that caused macros to fail under simultaneous load. + * Methods were not being properly cached due to use of inconsistent keys. === VTL Enhancements === @@ -29, +31 @@ * Line breaks are allowed in directive calls, macro calls, method calls, and string literals. * Macros now accept spaces or commas in separating arguments. * Directives can now be delimited with curly braces, for example #if($condition)something#{else}otherthing#{end}. + === Velocity Enhancements === @@ -47, +50 @@ * You can now deploy the Velocity jar file in the container classpath while keeping your application in a webapp classpath. * !FileResourceLoader now accepts absolute paths (when configured to accept them). * The default resource cache implementation now has an upper bound on cache size. + * New !StringResourceLoader can retrieve templates from repository of in-memory Strings. + * !MethodInvocationException now contains line, column, template name allowing application to produce more useful error messages. + * Change the meaning of localscope for macros to allow access to references from calling context. + * New event handler !InvalidReferenceHandler allows application to catch invalid references. Sample implementation collects them in list and optionally throws exception. + * New, optional !SecureIntrospector prohibits methods that involve manipulation of classes, classloaders or reflection objects. Use this introspector to secure Velocity against a risk of template writers using reflection to perform malicious acts. === Dependency Notes === @@ -60, +68 @@ === Known Issues === - There are a few known bugs and issues to be addressed before a Velocity 1.5 release. See [http://issues.apache.org/jira/browse/VELOCITY JIRA] for details. + There are a few known bugs. See [http://issues.apache.org/jira/browse/VELOCITY JIRA] for details. - * The new Event Handlers needed to be documented. * There remain various subtle escaping bugs - * DVSL is incompatible with Velocity 1.5 * Macros cannot be defined in one file and included with #parse in another. See MacroIssues for more information. === Other Notes === --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
