changeset 16047:a641b410ee9b

8166735: JarFile#getVersion spec clarification for unversioned jars Reviewed-by: mchung, alanb
author psandoz
date Tue, 08 Nov 2016 12:36:21 -0800
parents befc4757d253
children 36cf65a9e2f9
files src/java.base/share/classes/java/util/jar/JarFile.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/util/jar/JarFile.java	Tue Nov 08 12:36:13 2016 -0800
+++ b/src/java.base/share/classes/java/util/jar/JarFile.java	Tue Nov 08 12:36:21 2016 -0800
@@ -339,6 +339,10 @@
 
     /**
      * Returns the maximum version used when searching for versioned entries.
+     * <p>
+     * If this {@code JarFile} is not a multi-release jar file or is not
+     * configured to be processed as such, then the version returned will be the
+     * same as that returned from {@link #baseVersion()}.
      *
      * @return the maximum version
      * @since 9