Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6518

JVMInfo should not use parseFloat() to parse java.specification.version

    XMLWordPrintableJSON

    Details

    • Urgency:
      Normal

      Description

      JVMInfo uses parseFloat() to parse the java.specification.version property. That won't work correctly if the minor version has more than one digit. It should order the versions like this:

      1.7 < 1.8 < 1.9 < 1.10 < 1.11

      With parseFloat(), they are ordered like this instead:

      1.10 < 1.11 < 1.7 < 1.8 < 1.9

      The result is that newer Java versions will be classified as older, less capable ones, and some functionality might be disabled because Derby thinks the platform is not capable of providing it.

        Attachments

        1. d6518-1a.diff
          2 kB
          Knut Anders Hatlen
        2. derby-6518-01-aa-use-StringUtil.diff
          1 kB
          Richard N. Hillegas
        3. derby-6518-02-aa-cloneSplitMethod.diff
          3 kB
          Richard N. Hillegas

          Issue Links

            Activity

              People

              • Assignee:
                knutanders Knut Anders Hatlen
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: