mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8259814: test/jdk/tools/jlink/plugins/CompressorPluginTest.java has compilation issues
Reviewed-by: alanb
This commit is contained in:
parent
aec037721c
commit
c0cde7dc88
2 changed files with 16 additions and 12 deletions
|
@ -776,7 +776,6 @@ sanity/client/SwingSet/src/ScrollPaneDemoTest.java 8225013 linux-all
|
||||||
|
|
||||||
tools/jlink/JLinkReproducibleTest.java 8217166 windows-all,linux-aarch64
|
tools/jlink/JLinkReproducibleTest.java 8217166 windows-all,linux-aarch64
|
||||||
tools/jlink/JLinkReproducible3Test.java 8253688 linux-aarch64
|
tools/jlink/JLinkReproducible3Test.java 8253688 linux-aarch64
|
||||||
tools/jlink/plugins/CompressorPluginTest.java 8247407 generic-all
|
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
|
|
|
@ -95,17 +95,19 @@ public class CompressorPluginTest {
|
||||||
|
|
||||||
// compress level 0 == no compression
|
// compress level 0 == no compression
|
||||||
Properties options0 = new Properties();
|
Properties options0 = new Properties();
|
||||||
options0.setProperty(DefaultCompressPlugin.NAME,
|
DefaultCompressPlugin compressPlugin = new DefaultCompressPlugin();
|
||||||
"0");
|
options0.setProperty(compressPlugin.getName(),
|
||||||
checkCompress(classes, new DefaultCompressPlugin(),
|
DefaultCompressPlugin.LEVEL_0);
|
||||||
|
checkCompress(classes, compressPlugin,
|
||||||
options0,
|
options0,
|
||||||
new ResourceDecompressorFactory[]{
|
new ResourceDecompressorFactory[]{
|
||||||
});
|
});
|
||||||
|
|
||||||
// compress level 1 == String sharing
|
// compress level 1 == String sharing
|
||||||
Properties options1 = new Properties();
|
Properties options1 = new Properties();
|
||||||
options1.setProperty(DefaultCompressPlugin.NAME, "1");
|
compressPlugin = new DefaultCompressPlugin();
|
||||||
checkCompress(classes, new DefaultCompressPlugin(),
|
options1.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_1);
|
||||||
|
checkCompress(classes, compressPlugin,
|
||||||
options1,
|
options1,
|
||||||
new ResourceDecompressorFactory[]{
|
new ResourceDecompressorFactory[]{
|
||||||
new StringSharingDecompressorFactory()
|
new StringSharingDecompressorFactory()
|
||||||
|
@ -114,8 +116,9 @@ public class CompressorPluginTest {
|
||||||
// compress level 1 == String sharing + filter
|
// compress level 1 == String sharing + filter
|
||||||
options1.setProperty(DefaultCompressPlugin.FILTER,
|
options1.setProperty(DefaultCompressPlugin.FILTER,
|
||||||
"**Exception.class");
|
"**Exception.class");
|
||||||
options1.setProperty(DefaultCompressPlugin.NAME, "1");
|
compressPlugin = new DefaultCompressPlugin();
|
||||||
checkCompress(classes, new DefaultCompressPlugin(),
|
options1.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_1);
|
||||||
|
checkCompress(classes, compressPlugin,
|
||||||
options1,
|
options1,
|
||||||
new ResourceDecompressorFactory[]{
|
new ResourceDecompressorFactory[]{
|
||||||
new StringSharingDecompressorFactory()
|
new StringSharingDecompressorFactory()
|
||||||
|
@ -125,8 +128,9 @@ public class CompressorPluginTest {
|
||||||
Properties options2 = new Properties();
|
Properties options2 = new Properties();
|
||||||
options2.setProperty(DefaultCompressPlugin.FILTER,
|
options2.setProperty(DefaultCompressPlugin.FILTER,
|
||||||
"**Exception.class");
|
"**Exception.class");
|
||||||
options2.setProperty(DefaultCompressPlugin.NAME, "2");
|
compressPlugin = new DefaultCompressPlugin();
|
||||||
checkCompress(classes, new DefaultCompressPlugin(),
|
options2.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_2);
|
||||||
|
checkCompress(classes, compressPlugin,
|
||||||
options2,
|
options2,
|
||||||
new ResourceDecompressorFactory[]{
|
new ResourceDecompressorFactory[]{
|
||||||
new ZipDecompressorFactory()
|
new ZipDecompressorFactory()
|
||||||
|
@ -135,8 +139,9 @@ public class CompressorPluginTest {
|
||||||
// compress level 2 == ZIP + filter
|
// compress level 2 == ZIP + filter
|
||||||
options2.setProperty(DefaultCompressPlugin.FILTER,
|
options2.setProperty(DefaultCompressPlugin.FILTER,
|
||||||
"**Exception.class");
|
"**Exception.class");
|
||||||
options2.setProperty(DefaultCompressPlugin.NAME, "2");
|
compressPlugin = new DefaultCompressPlugin();
|
||||||
checkCompress(classes, new DefaultCompressPlugin(),
|
options2.setProperty(compressPlugin.getName(), DefaultCompressPlugin.LEVEL_2);
|
||||||
|
checkCompress(classes, compressPlugin,
|
||||||
options2,
|
options2,
|
||||||
new ResourceDecompressorFactory[]{
|
new ResourceDecompressorFactory[]{
|
||||||
new ZipDecompressorFactory(),
|
new ZipDecompressorFactory(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue