< prev index next >

test/java/util/jar/JarFile/MultiReleaseJarAPI.java

Print this page
rev 13960 : 8152733: Avoid creating Manifest when checking for Multi-Release attribute
Reviewed-by: psandoz, alanb, dchuyko
Contributed-by: claes.redestad@oracle.com, steve.drach@oracle.com

*** 81,90 **** --- 81,94 ---- try (JarFile jf = new JarFile(unversioned)) { Assert.assertFalse(jf.isMultiRelease()); } try (JarFile jf = new JarFile(multirelease)) { + Assert.assertFalse(jf.isMultiRelease()); + } + + try (JarFile jf = new JarFile(multirelease, true, ZipFile.OPEN_READ, Release.RUNTIME)) { Assert.assertTrue(jf.isMultiRelease()); } } @Test
< prev index next >