8166735: JarFile#getVersion spec clarification for unversioned jars

Reviewed-by: mchung, alanb
This commit is contained in:
Paul Sandoz 2016-11-08 12:36:21 -08:00
parent 060ce7c739
commit e7fe2a82ca

View File

@ -339,6 +339,10 @@ class JarFile extends ZipFile {
/**
* 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