8259814: test/jdk/tools/jlink/plugins/CompressorPluginTest.java has compilation issues

Reviewed-by: alanb
This commit is contained in:
Athijegannathan Sundararajan 2021-02-01 12:57:35 +00:00
parent aec037721c
commit c0cde7dc88
2 changed files with 16 additions and 12 deletions

View File

@ -776,7 +776,6 @@ sanity/client/SwingSet/src/ScrollPaneDemoTest.java 8225013 linux-all
tools/jlink/JLinkReproducibleTest.java 8217166 windows-all,linux-aarch64
tools/jlink/JLinkReproducible3Test.java 8253688 linux-aarch64
tools/jlink/plugins/CompressorPluginTest.java 8247407 generic-all
############################################################################

View File

@ -95,17 +95,19 @@ public class CompressorPluginTest {
// compress level 0 == no compression
Properties options0 = new Properties();
options0.setProperty(DefaultCompressPlugin.NAME,
"0");
checkCompress(classes, new DefaultCompressPlugin(),
DefaultCompressPlugin compressPlugin = new DefaultCompressPlugin();
options0.setProperty(compressPlugin.getName(),
DefaultCompressPlugin.LEVEL_0);
checkCompress(classes, compressPlugin,
options0,
new ResourceDecompressorFactory[]{
});
// compress level 1 == String sharing
Properties options1 = new Properties();
options1.setProperty(DefaultCompressPlugin.NAME, "1");
checkCompress(classes, new DefaultCompressPlugin(),
compressPlugin = new DefaultCompressPlugin();
options1.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_1);
checkCompress(classes, compressPlugin,
options1,
new ResourceDecompressorFactory[]{
new StringSharingDecompressorFactory()
@ -114,8 +116,9 @@ public class CompressorPluginTest {
// compress level 1 == String sharing + filter
options1.setProperty(DefaultCompressPlugin.FILTER,
"**Exception.class");
options1.setProperty(DefaultCompressPlugin.NAME, "1");
checkCompress(classes, new DefaultCompressPlugin(),
compressPlugin = new DefaultCompressPlugin();
options1.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_1);
checkCompress(classes, compressPlugin,
options1,
new ResourceDecompressorFactory[]{
new StringSharingDecompressorFactory()
@ -125,8 +128,9 @@ public class CompressorPluginTest {
Properties options2 = new Properties();
options2.setProperty(DefaultCompressPlugin.FILTER,
"**Exception.class");
options2.setProperty(DefaultCompressPlugin.NAME, "2");
checkCompress(classes, new DefaultCompressPlugin(),
compressPlugin = new DefaultCompressPlugin();
options2.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_2);
checkCompress(classes, compressPlugin,
options2,
new ResourceDecompressorFactory[]{
new ZipDecompressorFactory()
@ -135,8 +139,9 @@ public class CompressorPluginTest {
// compress level 2 == ZIP + filter
options2.setProperty(DefaultCompressPlugin.FILTER,
"**Exception.class");
options2.setProperty(DefaultCompressPlugin.NAME, "2");
checkCompress(classes, new DefaultCompressPlugin(),
compressPlugin = new DefaultCompressPlugin();
options2.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_2);
checkCompress(classes, compressPlugin,
options2,
new ResourceDecompressorFactory[]{
new ZipDecompressorFactory(),