Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.5
-
None
-
Any
Description
In the developer-guide document (http://velocity.apache.org/engine/releases/velocity-1.5/developer-guide.html), there is a section, which talks about using ExtendedProperties to initialize VelocityEngine (at the bottom of #miscellaneousdetails).
At least for me, it didn't work as described. Instead of:
ExtendedProperties eprops = new ExtendedProperties();
// if you already have a Properties object do this
eprops.putAll(props);
It should be:
ExtendedProperties eprops = null;
if (props==null)
else
{ eprops = convertProperties(props); }This is obviously very minor, but may save someone 15 minutes.