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

java.util.jar.JarFile.runtimeVersion() spec needs clarification

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b145
    • Verification:
      Not verified

      Description

      Specification for the following method
      http://jre.us.oracle.com/java/re/jdk/9/promoted/latest/docs/api/java/util/jar/JarFile.html#runtimeVersion--

      says: "In most cases, runtimeVersion() is equal to Runtime.version()"
      However by default this is true only for major version numbers so the following test line:

      assertEquals( Runtime.version(), JarFile.runtimeVersion() )

      will fail with the message like : "Expected equal to : "9-ea+135", was given: "9""

      The spec deserves to be clarified.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psandoz Paul Sandoz
              Reporter:
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: