Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8156711

Runtime.Version.version should be an int[] instead of a List<Integer>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd_minor
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Fix Understood

      Description

      http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-February/039096.html

      "I think it would be better to internally maintain an int[] for the version numbers rather than List<Integer>, that is more efficient in terms of space and comparing/equality (you can even use the new array comparison methods, thus the compareVersion becomes a one-liner)."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iris Iris Clark
              Reporter:
              iris Iris Clark
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: