jdk/src/java.base/share/classes/java/util/jar/JarFile.java
changeset 41957 d228d198335b
parent 40940 1413b2ff89e4
child 41958 ea78a8efc680
equal deleted inserted replaced
41956:69deb06bb8f1 41957:d228d198335b
   190      * The JAR manifest file name.
   190      * The JAR manifest file name.
   191      */
   191      */
   192     public static final String MANIFEST_NAME = META_INF + "MANIFEST.MF";
   192     public static final String MANIFEST_NAME = META_INF + "MANIFEST.MF";
   193 
   193 
   194     /**
   194     /**
   195      * The version that represents the unversioned configuration of a multi-release jar file.
   195      * Returns the version that represents the unversioned configuration of a
   196      *
   196      * multi-release jar file.
   197      * @return Runtime.Version that represents the unversioned configuration
   197      *
       
   198      * @return the version that represents the unversioned configuration
   198      *
   199      *
   199      * @since 9
   200      * @since 9
   200      */
   201      */
   201     public static Runtime.Version baseVersion() {
   202     public static Runtime.Version baseVersion() {
   202         return BASE_VERSION;
   203         return BASE_VERSION;
   203     }
   204     }
   204 
   205 
   205     /**
   206     /**
   206      * The version that represents the effective runtime versioned configuration of a
   207      * Returns the version that represents the effective runtime versioned
   207      * multi-release jar file.  In most cases, {@code runtimeVersion()} is equal to
   208      * configuration of a multi-release jar file.
   208      * {@code Runtime.version()}.  However, if the {@code jdk.util.jar.version} property is set,
   209      * <p>
   209      * {@code runtimeVersion()} is derived from that property and may not be equal to
   210      * By default the major version number of the returned {@code Version} will
   210      * {@code Runtime.version()}.
   211      * be equal to the major version number of {@code Runtime.version()}.
   211      *
   212      * However, if the {@code jdk.util.jar.version} property is set, the
   212      * @return Runtime.Version that represents the runtime versioned configuration
   213      * returned {@code Version} is derived from that property and major version
       
   214      * numbers may not be equal.
       
   215      *
       
   216      * @return the version that represents the runtime versioned configuration
   213      *
   217      *
   214      * @since 9
   218      * @since 9
   215      */
   219      */
   216     public static Runtime.Version runtimeVersion() {
   220     public static Runtime.Version runtimeVersion() {
   217         return RUNTIME_VERSION;
   221         return RUNTIME_VERSION;