Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7586

Storing Properties to a file does not work when using OrderedProperties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Workaround exists
    • Affects Version/s: 5.7, 6.0
    • Fix Version/s: None
    • Component/s: core
    • Labels:
    • Environment:
      Windows 10
    • Patch included:
      Yes

      Description

      One cannot use info.magnolia.cms.util.OrderedProperties when one wants to write properties to a file (for example when generating custom translation files). 

      The entire reason for this is that OrderedProperties is missing a Method override, this one to be exact:

      @Override
      public synchronized Enumeration<Object> keys() {
          return new IteratorEnumeration(keySet().iterator()); // stored properties file will be empty otherwise
      }
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              martyglaubitz Marty Glaubitz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: