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

Storing Properties to a file does not work when using OrderedProperties

XMLWordPrintable

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

      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
      }
      

       

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD