Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-560

Should ExtendedProperties.convertProperties instead of ExtendedProperties.putAll

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5
    • 1.6
    • Documentation
    • 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)

      { eprops = new ExtendedProperties(); }

      else

      { eprops = convertProperties(props); }

      This is obviously very minor, but may save someone 15 minutes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eliashberg Alik Eliashberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: