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

LinkedHashMap copy constructor fails in SwingJS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.1_js
    • Component/s: jalview-j2s
    • Labels:
      None

      Description

      Test:
          Map<String, String> map = new LinkedHashMap<>();
          map.put("Parent", "ENSG00000123569");
          Map<String, String> copy = new LinkedHashMap<>(map); // or new HashMap<>();
          System.out.println(copy.get("Parent"));
          copy = new LinkedHashMap<>();
          copy.putAll(map);
          System.out.println(copy.get("Parent"));

      Prints the expected values in Java, null in JS.

        Attachments

          Activity

            People

            Assignee:
            gmungoc Mungo Carstairs
            Reporter:
            gmungoc Mungo Carstairs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: