[
https://issues.apache.org/jira/browse/VELOCITY-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Bubna resolved VELOCITY-560.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.6
fixed. thanks!
> Should ExtendedProperties.convertProperties instead of
> ExtendedProperties.putAll
> --------------------------------------------------------------------------------
>
> Key: VELOCITY-560
> URL: https://issues.apache.org/jira/browse/VELOCITY-560
> Project: Velocity
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 1.5
> Environment: Any
> Reporter: Alik Eliashberg
> Priority: Minor
> Fix For: 1.6
>
>
> 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) {
> eprops = new ExtendedProperties();
> } else {
> eprops = convertProperties(props);
> }
> This is obviously very minor, but may save someone 15 minutes.
--
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]