Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3235

Alphabetical sort when saving of Jalview properties under Java 11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Being tested
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.11.0
    • Fix Version/s: 2.11.1
    • Component/s: jvdesktop
    • Labels:

      Description

      In 2.10.5, properties are sorted (for convenience of reading) when the Jalview properties file is saved. With Java 11 this stops working.
      The implementation of Properties.save() has changed from
      (Java 8) for (Enumeration<?> e = keys()) ...
      to
      (Java 11) for (Map.Entry<Object, Object> e : entrySet()) ...
      The trick in class java.bin.Cache (to override the keys() method to return an Enumeration over a TreeSet) no longer works.
      (As noted in https://stackoverflow.com/a/52127284 .)

        Attachments

          Activity

            People

            Assignee:
            jprocter James Procter
            Reporter:
            gmungoc Mungo Carstairs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: