-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: 1.6
-
Component/s: Documentation
-
Labels:None
-
Environment:Any
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.