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

Storing Properties to a file does not work when using OrderedProperties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Workaround exists
    • Neutral
    • None
    • 5.7, 6.0
    • core
    • Windows 10

    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
      }
      

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD