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

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

XMLWordPrintable

    • b145
    • Not verified

      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.

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

              Created:
              Updated:
              Resolved: