Bug#1108557: bcel: FTBFS with default Java 25
Vladimir Petko
vpa1977 at gmail.com
Tue Jul 1 05:16:19 BST 2025
Source: bcel
Version: 6.10.0-1
Severity: normal
Tags: ftbfs
Usertags: default-java25
Dear Maintainers,
The package bcel ftbfs with default Java 25.
The relevant part of the build log:
---------------
[INFO] Running org.apache.bcel.util.BCELifierTestCase
[ERROR] Tests run: 40, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 11.296 s <<< FAILURE! - in org.apache.bcel.util.BCELifierTestCase
[ERROR] testJavapCompare{String}[1] Time elapsed: 1.657 s <<< FAILURE!
org.opentest4j.AssertionFailedError:
expected: <Compiled from "Java8Example.java"
public interface Java8Example {
public default void hello();
Code:
0: iconst_3
1: anewarray #n
4: dup
5: iconst_0
6: ldc #n
8: aastore
9: dup
10: iconst_1
11: ldc #n
13: aastore
14: dup
15: iconst_2
16: ldc #n
18: aastore
19: invokestatic #n
22: astore_1
23: getstatic #n
26: aload_1
27: invokevirtual #n
30: aload_1
31: invokeinterface #n, 1
36: invokedynamic #n, 0
41: invokeinterface #n, 2
46: invokestatic #n
49: invokeinterface #n, 2
54: checkcast #n
57: astore_2
58: getstatic #n
61: aload_2
62: invokevirtual #n
65: return
private static boolean lambda$hello$0(java.lang.String);
Code:
0: aload_0
1: invokevirtual #n
4: iconst_2
5: if_icmple 12
8: iconst_1
9: goto 13
12: iconst_0
13: ireturn
}
> but was: <Compiled from "Java8Example.java"
public interface Java8Example {
public default void hello();
Code:
0: iconst_3
1: anewarray #n
4: dup
5: iconst_0
6: ldc #n
8: aastore
9: dup
10: iconst_1
11: ldc #n
13: aastore
14: dup
15: iconst_2
16: ldc #n
18: aastore
19: invokestatic #n
22: astore_1
23: getstatic #n
26: aload_1
27: invokevirtual #n
30: aload_1
31: invokeinterface #n, 1
Error: Bad tag (10) at index (43) position (466), expected InvokeDynamicEntry
36: invokedynamic ???
41: invokeinterface #n, 2
46: invokestatic #n
49: invokeinterface #n, 2
54: checkcast #n
57: astore_2
58: getstatic #n
61: aload_2
62: invokevirtual #n
65: return
private static boolean lambda$hello$0(java.lang.String);
Code:
0: aload_0
1: invokevirtual #n
4: iconst_2
5: if_icmple 12
8: iconst_1
9: goto 13
12: iconst_0
13: ireturn
}
>
at org.apache.bcel.util.BCELifierTestCase.testClassOnPath(BCELifierTestCase.java:159)
at org.apache.bcel.util.BCELifierTestCase.testJavapCompare(BCELifierTestCase.java:197)
[ERROR] testJavapCompare{String}[2] Time elapsed: 1.982 s <<< FAILURE!
org.opentest4j.AssertionFailedError:
expected: <Compiled from "Java8Example2.java"
public class Java8Example2 implements java.io.Serializable,java.lang.Runnable {
private static final long serialVersionUID;
public static final float E;
public static final double PI;
public static final char DOT;
public static final short PORT;
public static final int ICONST_M1;
public static final int ICONST_0;
public static final int ICONST_1;
public static final int ICONST_2;
public static final int ICONST_3;
public static final int ICONST_4;
public static final int ICONST_5;
public static final long LCONST_0;
public static final long LCONST_1;
public static final float FCONST_0;
public static final float FCONST_1;
public static final float FCONST_2;
public static final double DCONST_0;
public static final double DCONST_1;
public static final java.lang.Float FNULL;
public static final java.lang.Double DNULL;
public static final java.lang.Long LNULL;
public static final byte INVOKESTATIC;
public static final int[][] MULTI_ARRAY;
public static final int[][] MULTI_ARRAY2;
private static volatile transient java.lang.StringBuffer STRING_BUFFER;
public Java8Example2();
Code:
0: aload_0
1: invokespecial #n
4: return
public synchronized void run();
Code:
0: aload_0
1: iconst_3
2: anewarray #n
5: dup
6: iconst_0
7: ldc #n
9: aastore
10: dup
11: iconst_1
12: ldc #n
14: aastore
15: dup
16: iconst_2
17: ldc #n
19: aastore
20: invokevirtual #n
23: goto 31
26: astore_1
27: aload_1
28: invokevirtual #n
31: return
Exception table:
from to target type
0 23 26 Class java/lang/Exception
void check(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_1
1: instanceof #n
4: ifeq 16
7: aload_1
8: invokevirtual #n
11: ldc #n
13: if_acmpeq 24
16: new #n
19: dup
20: invokespecial #n
23: athrow
24: return
void hello(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_0
1: aload_1
2: invokevirtual #n
5: aload_1
6: invokestatic #n
9: getstatic #n
12: dup
13: invokevirtual #n
16: pop
17: invokedynamic #n, 0
22: invokeinterface #n, 2
27: getstatic #n
30: iconst_m1
31: invokevirtual #n
34: pop
35: getstatic #n
38: iconst_0
39: invokevirtual #n
42: pop
43: getstatic #n
46: iconst_1
47: invokevirtual #n
50: pop
51: getstatic #n
54: iconst_2
55: invokevirtual #n
58: pop
59: getstatic #n
62: iconst_3
63: invokevirtual #n
66: pop
67: getstatic #n
70: iconst_4
71: invokevirtual #n
74: pop
75: getstatic #n
78: iconst_5
79: invokevirtual #n
82: pop
83: getstatic #n
86: lconst_0
87: invokevirtual #n
90: pop
91: getstatic #n
94: lconst_1
95: invokevirtual #n
98: pop
99: getstatic #n
102: fconst_0
103: invokevirtual #n
106: pop
107: getstatic #n
110: fconst_1
111: invokevirtual #n
114: pop
115: getstatic #n
118: fconst_2
119: invokevirtual #n
122: pop
123: getstatic #n
126: dconst_0
127: invokevirtual #n
130: pop
131: getstatic #n
134: dconst_1
135: invokevirtual #n
138: pop
139: getstatic #n
142: getstatic #n
145: invokevirtual #n
148: pop
149: getstatic #n
152: getstatic #n
155: invokevirtual #n
158: pop
159: getstatic #n
162: getstatic #n
165: invokevirtual #n
168: pop
169: getstatic #n
172: bipush 46
174: invokevirtual #n
177: pop
178: getstatic #n
181: bipush -72
183: invokevirtual #n
186: pop
187: getstatic #n
190: aload_0
191: ldc #n
193: ldc #n
195: invokevirtual #n
198: invokevirtual #n
201: pop
202: getstatic #n
205: aload_0
206: ldc #n
208: ldc #n
210: invokevirtual #n
213: invokevirtual #n
216: pop
217: getstatic #n
220: aload_0
221: ldc #n
223: ldc #n
225: invokevirtual #n
228: invokevirtual #n
231: pop
232: getstatic #n
235: aload_0
236: ldc2_w #n
239: ldc2_w #n
242: invokevirtual #n
245: invokevirtual #n
248: pop
249: getstatic #n
252: aload_0
253: ldc2_w #n
256: ldc2_w #n
259: invokevirtual #n
262: invokevirtual #n
265: pop
266: getstatic #n
269: aload_0
270: ldc2_w #n
273: ldc2_w #n
276: invokevirtual #n
279: invokevirtual #n
282: pop
283: getstatic #n
286: ldc2_w #n
289: invokevirtual #n
292: pop
293: getstatic #n
296: getstatic #n
299: invokestatic #n
302: invokevirtual #n
305: pop
306: return
double drem(double, double);
Code:
0: dload_1
1: dload_3
2: drem
3: dreturn
float frem(float, float);
Code:
0: fload_1
1: fload_2
2: frem
3: freturn
static {};
Code:
0: aconst_null
1: putstatic #n
4: aconst_null
5: putstatic #n
8: aconst_null
9: putstatic #n
12: iconst_2
13: anewarray #n
16: dup
17: iconst_0
18: iconst_1
19: newarray int
21: dup
22: iconst_0
23: iconst_0
24: iastore
25: aastore
26: dup
27: iconst_1
28: iconst_1
29: newarray int
31: dup
32: iconst_0
33: iconst_1
34: iastore
35: aastore
36: putstatic #n
39: iconst_2
40: iconst_2
41: multianewarray #n, 2
45: putstatic #n
48: new #n
51: dup
52: invokespecial #n
55: putstatic #n
58: return
}
> but was: <Compiled from "Java8Example2.java"
public class Java8Example2 implements java.io.Serializable,java.lang.Runnable {
private static final long serialVersionUID;
public static final float E;
public static final double PI;
public static final char DOT;
public static final short PORT;
public static final int ICONST_M1;
public static final int ICONST_0;
public static final int ICONST_1;
public static final int ICONST_2;
public static final int ICONST_3;
public static final int ICONST_4;
public static final int ICONST_5;
public static final long LCONST_0;
public static final long LCONST_1;
public static final float FCONST_0;
public static final float FCONST_1;
public static final float FCONST_2;
public static final double DCONST_0;
public static final double DCONST_1;
public static final java.lang.Float FNULL;
public static final java.lang.Double DNULL;
public static final java.lang.Long LNULL;
public static final byte INVOKESTATIC;
public static final int[][] MULTI_ARRAY;
public static final int[][] MULTI_ARRAY2;
private static volatile transient java.lang.StringBuffer STRING_BUFFER;
public Java8Example2();
Code:
0: aload_0
1: invokespecial #n
4: return
public synchronized void run();
Code:
0: aload_0
1: iconst_3
2: anewarray #n
5: dup
6: iconst_0
7: ldc #n
9: aastore
10: dup
11: iconst_1
12: ldc #n
14: aastore
15: dup
16: iconst_2
17: ldc #n
19: aastore
20: invokevirtual #n
23: goto 31
26: astore_1
27: aload_1
28: invokevirtual #n
31: return
Exception table:
from to target type
0 23 26 Class java/lang/Exception
void check(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_1
1: instanceof #n
4: ifeq 16
7: aload_1
8: invokevirtual #n
11: ldc #n
13: if_acmpeq 24
16: new #n
19: dup
20: invokespecial #n
23: athrow
24: return
void hello(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_0
1: aload_1
2: invokevirtual #n
5: aload_1
6: invokestatic #n
9: getstatic #n
12: dup
13: invokevirtual #n
16: pop
Error: Bad tag (10) at index (121) position (1181), expected InvokeDynamicEntry
17: invokedynamic ???
22: invokeinterface #n, 2
27: getstatic #n
30: iconst_m1
31: invokevirtual #n
34: pop
35: getstatic #n
38: iconst_0
39: invokevirtual #n
42: pop
43: getstatic #n
46: iconst_1
47: invokevirtual #n
50: pop
51: getstatic #n
54: iconst_2
55: invokevirtual #n
58: pop
59: getstatic #n
62: iconst_3
63: invokevirtual #n
66: pop
67: getstatic #n
70: iconst_4
71: invokevirtual #n
74: pop
75: getstatic #n
78: iconst_5
79: invokevirtual #n
82: pop
83: getstatic #n
86: lconst_0
87: invokevirtual #n
90: pop
91: getstatic #n
94: lconst_1
95: invokevirtual #n
98: pop
99: getstatic #n
102: fconst_0
103: invokevirtual #n
106: pop
107: getstatic #n
110: fconst_1
111: invokevirtual #n
114: pop
115: getstatic #n
118: fconst_2
119: invokevirtual #n
122: pop
123: getstatic #n
126: dconst_0
127: invokevirtual #n
130: pop
131: getstatic #n
134: dconst_1
135: invokevirtual #n
138: pop
139: getstatic #n
142: getstatic #n
145: invokevirtual #n
148: pop
149: getstatic #n
152: getstatic #n
155: invokevirtual #n
158: pop
159: getstatic #n
162: getstatic #n
165: invokevirtual #n
168: pop
169: getstatic #n
172: bipush 46
174: invokevirtual #n
177: pop
178: getstatic #n
181: bipush -72
183: invokevirtual #n
186: pop
187: getstatic #n
190: aload_0
191: ldc #n
193: ldc #n
195: invokevirtual #n
198: invokevirtual #n
201: pop
202: getstatic #n
205: aload_0
206: ldc #n
208: ldc #n
210: invokevirtual #n
213: invokevirtual #n
216: pop
217: getstatic #n
220: aload_0
221: ldc #n
223: ldc #n
225: invokevirtual #n
228: invokevirtual #n
231: pop
232: getstatic #n
235: aload_0
236: ldc2_w #n
239: ldc2_w #n
242: invokevirtual #n
245: invokevirtual #n
248: pop
249: getstatic #n
252: aload_0
253: ldc2_w #n
256: ldc2_w #n
259: invokevirtual #n
262: invokevirtual #n
265: pop
266: getstatic #n
269: aload_0
270: ldc2_w #n
273: ldc2_w #n
276: invokevirtual #n
279: invokevirtual #n
282: pop
283: getstatic #n
286: ldc2_w #n
289: invokevirtual #n
292: pop
293: getstatic #n
296: getstatic #n
299: invokestatic #n
302: invokevirtual #n
305: pop
306: return
double drem(double, double);
Code:
0: dload_1
1: dload_3
2: drem
3: dreturn
float frem(float, float);
Code:
0: fload_1
1: fload_2
2: frem
3: freturn
static {};
Code:
0: aconst_null
1: putstatic #n
4: aconst_null
5: putstatic #n
8: aconst_null
9: putstatic #n
12: iconst_2
13: anewarray #n
16: dup
17: iconst_0
18: iconst_1
19: newarray int
21: dup
22: iconst_0
23: iconst_0
24: iastore
25: aastore
26: dup
27: iconst_1
28: iconst_1
29: newarray int
31: dup
32: iconst_0
33: iconst_1
34: iastore
35: aastore
36: putstatic #n
39: iconst_2
40: iconst_2
41: multianewarray #n, 2
45: putstatic #n
48: new #n
51: dup
52: invokespecial #n
55: putstatic #n
58: return
}
>
at org.apache.bcel.util.BCELifierTestCase.testClassOnPath(BCELifierTestCase.java:159)
at org.apache.bcel.util.BCELifierTestCase.testJavapCompare(BCELifierTestCase.java:197)
[INFO] Running org.apache.bcel.util.ModularRuntimeImageTestCase
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 s - in org.apache.bcel.util.ModularRuntimeImageTestCase
[INFO] Running org.apache.bcel.util.ClassPathRepositoryTestCase
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 s - in org.apache.bcel.util.ClassPathRepositoryTestCase
[INFO] Running org.apache.bcel.PerformanceTest
Parsing /usr/lib/jvm/java-25-openjdk-amd64/lib/jrt-fs.jar
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 s - in org.apache.bcel.PerformanceTest
[INFO] Running org.apache.bcel.CounterVisitorTestCase
[INFO] Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 s - in org.apache.bcel.CounterVisitorTestCase
[INFO] Running org.apache.bcel.AnnotationDefaultAttributeTestCase
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.bcel.AnnotationDefaultAttributeTestCase
[INFO] Running org.apache.bcel.OssFuzzTestCase
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s - in org.apache.bcel.OssFuzzTestCase
[INFO] Running org.apache.bcel.EnumAccessFlagTestCase
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.bcel.EnumAccessFlagTestCase
[INFO] Running org.apache.bcel.ElementValueGenTestCase
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in org.apache.bcel.ElementValueGenTestCase
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ConstantPoolModuleAccessTestCase.testJREModules:366 expected: <[java.lang.System$LoggerFinder, java.net.ContentHandlerFactory, java.net.spi.InetAddressResolverProvider, java.net.spi.URLStreamHandlerProvider, java.nio.channels.spi.AsynchronousChannelProvider, java.nio.channels.spi.SelectorProvider, java.nio.charset.spi.CharsetProvider, java.nio.file.spi.FileSystemProvider, java.nio.file.spi.FileTypeDetector, java.security.Provider, java.text.spi.BreakIteratorProvider, java.text.spi.CollatorProvider, java.text.spi.DateFormatProvider, java.text.spi.DateFormatSymbolsProvider, java.text.spi.DecimalFormatSymbolsProvider, java.text.spi.NumberFormatProvider, java.time.chrono.AbstractChronology, java.time.chrono.Chronology, java.time.zone.ZoneRulesProvider, java.util.random.RandomGenerator, java.util.spi.CalendarDataProvider, java.util.spi.CalendarNameProvider, java.util.spi.CurrencyNameProvider, java.util.spi.LocaleNameProvider, java.util.spi.ResourceBundleControlProvider, java.util.spi.ResourceBundleProvider, java.util.spi.TimeZoneNameProvider, java.util.spi.ToolProvider, javax.security.auth.spi.LoginModule, jdk.internal.io.JdkConsoleProvider, jdk.internal.logger.DefaultLoggerFinder, sun.text.spi.JavaTimeDateTimePatternProvider, sun.util.locale.provider.LocaleDataMetaInfo, sun.util.resources.LocaleData$CommonResourceBundleProvider, sun.util.resources.LocaleData$SupplementaryResourceBundleProvider, sun.util.spi.CalendarProvider]> but was: <[java.lang.System$LoggerFinder, java.net.ContentHandlerFactory, java.net.spi.InetAddressResolverProvider, java.net.spi.URLStreamHandlerProvider, java.nio.channels.spi.AsynchronousChannelProvider, java.nio.channels.spi.SelectorProvider, java.nio.charset.spi.CharsetProvider, java.nio.file.spi.FileSystemProvider, java.nio.file.spi.FileTypeDetector, java.security.Provider, java.text.spi.BreakIteratorProvider, java.text.spi.CollatorProvider, java.text.spi.DateFormatProvider, java.text.spi.DateFormatSymbolsProvider, java.text.spi.DecimalFormatSymbolsProvider, java.text.spi.NumberFormatProvider, java.time.chrono.AbstractChronology, java.time.chrono.Chronology, java.time.zone.ZoneRulesProvider, java.util.spi.CalendarDataProvider, java.util.spi.CalendarNameProvider, java.util.spi.CurrencyNameProvider, java.util.spi.LocaleNameProvider, java.util.spi.ResourceBundleControlProvider, java.util.spi.ResourceBundleProvider, java.util.spi.TimeZoneNameProvider, java.util.spi.ToolProvider, javax.security.auth.spi.LoginModule, jdk.internal.io.JdkConsoleProvider, jdk.internal.logger.DefaultLoggerFinder, sun.text.spi.JavaTimeDateTimePatternProvider, sun.util.locale.provider.LocaleDataMetaInfo, sun.util.resources.LocaleData$CommonResourceBundleProvider, sun.util.resources.LocaleData$SupplementaryResourceBundleProvider, sun.util.spi.CalendarProvider]>
[ERROR] ConstantPoolModuleAccessTestCase.testJREModules:366 expected: <[javax.annotation.processing.Processor, com.sun.source.util.Plugin, com.sun.tools.doclint.DocLint, com.sun.tools.javac.platform.PlatformProvider]> but was: <[javax.annotation.processing.Processor, com.sun.source.util.Plugin, com.sun.tools.doclint.DocLint, com.sun.tools.javac.platform.PlatformProvider, com.sun.tools.javac.api.JavacTrees$DocCommentTreeTransformer]>
[ERROR] ConstantPoolModuleAccessTestCase.testJREModules:366 Found [com.sun.tools.javac.platform.PlatformProvider] in /jdk.jdeps/module-info.class ==> expected: <0> but was: <1>
[ERROR] BCELifierTestCase.testJavapCompare:197->testClassOnPath:159 expected: <Compiled from "Java8Example.java"
public interface Java8Example {
public default void hello();
Code:
0: iconst_3
1: anewarray #n
4: dup
5: iconst_0
6: ldc #n
8: aastore
9: dup
10: iconst_1
11: ldc #n
13: aastore
14: dup
15: iconst_2
16: ldc #n
18: aastore
19: invokestatic #n
22: astore_1
23: getstatic #n
26: aload_1
27: invokevirtual #n
30: aload_1
31: invokeinterface #n, 1
36: invokedynamic #n, 0
41: invokeinterface #n, 2
46: invokestatic #n
49: invokeinterface #n, 2
54: checkcast #n
57: astore_2
58: getstatic #n
61: aload_2
62: invokevirtual #n
65: return
private static boolean lambda$hello$0(java.lang.String);
Code:
0: aload_0
1: invokevirtual #n
4: iconst_2
5: if_icmple 12
8: iconst_1
9: goto 13
12: iconst_0
13: ireturn
}
> but was: <Compiled from "Java8Example.java"
public interface Java8Example {
public default void hello();
Code:
0: iconst_3
1: anewarray #n
4: dup
5: iconst_0
6: ldc #n
8: aastore
9: dup
10: iconst_1
11: ldc #n
13: aastore
14: dup
15: iconst_2
16: ldc #n
18: aastore
19: invokestatic #n
22: astore_1
23: getstatic #n
26: aload_1
27: invokevirtual #n
30: aload_1
31: invokeinterface #n, 1
Error: Bad tag (10) at index (43) position (466), expected InvokeDynamicEntry
36: invokedynamic ???
41: invokeinterface #n, 2
46: invokestatic #n
49: invokeinterface #n, 2
54: checkcast #n
57: astore_2
58: getstatic #n
61: aload_2
62: invokevirtual #n
65: return
private static boolean lambda$hello$0(java.lang.String);
Code:
0: aload_0
1: invokevirtual #n
4: iconst_2
5: if_icmple 12
8: iconst_1
9: goto 13
12: iconst_0
13: ireturn
}
>
[ERROR] BCELifierTestCase.testJavapCompare:197->testClassOnPath:159 expected: <Compiled from "Java8Example2.java"
public class Java8Example2 implements java.io.Serializable,java.lang.Runnable {
private static final long serialVersionUID;
public static final float E;
public static final double PI;
public static final char DOT;
public static final short PORT;
public static final int ICONST_M1;
public static final int ICONST_0;
public static final int ICONST_1;
public static final int ICONST_2;
public static final int ICONST_3;
public static final int ICONST_4;
public static final int ICONST_5;
public static final long LCONST_0;
public static final long LCONST_1;
public static final float FCONST_0;
public static final float FCONST_1;
public static final float FCONST_2;
public static final double DCONST_0;
public static final double DCONST_1;
public static final java.lang.Float FNULL;
public static final java.lang.Double DNULL;
public static final java.lang.Long LNULL;
public static final byte INVOKESTATIC;
public static final int[][] MULTI_ARRAY;
public static final int[][] MULTI_ARRAY2;
private static volatile transient java.lang.StringBuffer STRING_BUFFER;
public Java8Example2();
Code:
0: aload_0
1: invokespecial #n
4: return
public synchronized void run();
Code:
0: aload_0
1: iconst_3
2: anewarray #n
5: dup
6: iconst_0
7: ldc #n
9: aastore
10: dup
11: iconst_1
12: ldc #n
14: aastore
15: dup
16: iconst_2
17: ldc #n
19: aastore
20: invokevirtual #n
23: goto 31
26: astore_1
27: aload_1
28: invokevirtual #n
31: return
Exception table:
from to target type
0 23 26 Class java/lang/Exception
void check(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_1
1: instanceof #n
4: ifeq 16
7: aload_1
8: invokevirtual #n
11: ldc #n
13: if_acmpeq 24
16: new #n
19: dup
20: invokespecial #n
23: athrow
24: return
void hello(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_0
1: aload_1
2: invokevirtual #n
5: aload_1
6: invokestatic #n
9: getstatic #n
12: dup
13: invokevirtual #n
16: pop
17: invokedynamic #n, 0
22: invokeinterface #n, 2
27: getstatic #n
30: iconst_m1
31: invokevirtual #n
34: pop
35: getstatic #n
38: iconst_0
39: invokevirtual #n
42: pop
43: getstatic #n
46: iconst_1
47: invokevirtual #n
50: pop
51: getstatic #n
54: iconst_2
55: invokevirtual #n
58: pop
59: getstatic #n
62: iconst_3
63: invokevirtual #n
66: pop
67: getstatic #n
70: iconst_4
71: invokevirtual #n
74: pop
75: getstatic #n
78: iconst_5
79: invokevirtual #n
82: pop
83: getstatic #n
86: lconst_0
87: invokevirtual #n
90: pop
91: getstatic #n
94: lconst_1
95: invokevirtual #n
98: pop
99: getstatic #n
102: fconst_0
103: invokevirtual #n
106: pop
107: getstatic #n
110: fconst_1
111: invokevirtual #n
114: pop
115: getstatic #n
118: fconst_2
119: invokevirtual #n
122: pop
123: getstatic #n
126: dconst_0
127: invokevirtual #n
130: pop
131: getstatic #n
134: dconst_1
135: invokevirtual #n
138: pop
139: getstatic #n
142: getstatic #n
145: invokevirtual #n
148: pop
149: getstatic #n
152: getstatic #n
155: invokevirtual #n
158: pop
159: getstatic #n
162: getstatic #n
165: invokevirtual #n
168: pop
169: getstatic #n
172: bipush 46
174: invokevirtual #n
177: pop
178: getstatic #n
181: bipush -72
183: invokevirtual #n
186: pop
187: getstatic #n
190: aload_0
191: ldc #n
193: ldc #n
195: invokevirtual #n
198: invokevirtual #n
201: pop
202: getstatic #n
205: aload_0
206: ldc #n
208: ldc #n
210: invokevirtual #n
213: invokevirtual #n
216: pop
217: getstatic #n
220: aload_0
221: ldc #n
223: ldc #n
225: invokevirtual #n
228: invokevirtual #n
231: pop
232: getstatic #n
235: aload_0
236: ldc2_w #n
239: ldc2_w #n
242: invokevirtual #n
245: invokevirtual #n
248: pop
249: getstatic #n
252: aload_0
253: ldc2_w #n
256: ldc2_w #n
259: invokevirtual #n
262: invokevirtual #n
265: pop
266: getstatic #n
269: aload_0
270: ldc2_w #n
273: ldc2_w #n
276: invokevirtual #n
279: invokevirtual #n
282: pop
283: getstatic #n
286: ldc2_w #n
289: invokevirtual #n
292: pop
293: getstatic #n
296: getstatic #n
299: invokestatic #n
302: invokevirtual #n
305: pop
306: return
double drem(double, double);
Code:
0: dload_1
1: dload_3
2: drem
3: dreturn
float frem(float, float);
Code:
0: fload_1
1: fload_2
2: frem
3: freturn
static {};
Code:
0: aconst_null
1: putstatic #n
4: aconst_null
5: putstatic #n
8: aconst_null
9: putstatic #n
12: iconst_2
13: anewarray #n
16: dup
17: iconst_0
18: iconst_1
19: newarray int
21: dup
22: iconst_0
23: iconst_0
24: iastore
25: aastore
26: dup
27: iconst_1
28: iconst_1
29: newarray int
31: dup
32: iconst_0
33: iconst_1
34: iastore
35: aastore
36: putstatic #n
39: iconst_2
40: iconst_2
41: multianewarray #n, 2
45: putstatic #n
48: new #n
51: dup
52: invokespecial #n
55: putstatic #n
58: return
}
> but was: <Compiled from "Java8Example2.java"
public class Java8Example2 implements java.io.Serializable,java.lang.Runnable {
private static final long serialVersionUID;
public static final float E;
public static final double PI;
public static final char DOT;
public static final short PORT;
public static final int ICONST_M1;
public static final int ICONST_0;
public static final int ICONST_1;
public static final int ICONST_2;
public static final int ICONST_3;
public static final int ICONST_4;
public static final int ICONST_5;
public static final long LCONST_0;
public static final long LCONST_1;
public static final float FCONST_0;
public static final float FCONST_1;
public static final float FCONST_2;
public static final double DCONST_0;
public static final double DCONST_1;
public static final java.lang.Float FNULL;
public static final java.lang.Double DNULL;
public static final java.lang.Long LNULL;
public static final byte INVOKESTATIC;
public static final int[][] MULTI_ARRAY;
public static final int[][] MULTI_ARRAY2;
private static volatile transient java.lang.StringBuffer STRING_BUFFER;
public Java8Example2();
Code:
0: aload_0
1: invokespecial #n
4: return
public synchronized void run();
Code:
0: aload_0
1: iconst_3
2: anewarray #n
5: dup
6: iconst_0
7: ldc #n
9: aastore
10: dup
11: iconst_1
12: ldc #n
14: aastore
15: dup
16: iconst_2
17: ldc #n
19: aastore
20: invokevirtual #n
23: goto 31
26: astore_1
27: aload_1
28: invokevirtual #n
31: return
Exception table:
from to target type
0 23 26 Class java/lang/Exception
void check(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_1
1: instanceof #n
4: ifeq 16
7: aload_1
8: invokevirtual #n
11: ldc #n
13: if_acmpeq 24
16: new #n
19: dup
20: invokespecial #n
23: athrow
24: return
void hello(java.lang.String...) throws java.lang.Exception;
Code:
0: aload_0
1: aload_1
2: invokevirtual #n
5: aload_1
6: invokestatic #n
9: getstatic #n
12: dup
13: invokevirtual #n
16: pop
Error: Bad tag (10) at index (121) position (1181), expected InvokeDynamicEntry
17: invokedynamic ???
22: invokeinterface #n, 2
27: getstatic #n
30: iconst_m1
31: invokevirtual #n
34: pop
35: getstatic #n
38: iconst_0
39: invokevirtual #n
42: pop
43: getstatic #n
46: iconst_1
47: invokevirtual #n
50: pop
51: getstatic #n
54: iconst_2
55: invokevirtual #n
58: pop
59: getstatic #n
62: iconst_3
63: invokevirtual #n
66: pop
67: getstatic #n
70: iconst_4
71: invokevirtual #n
74: pop
75: getstatic #n
78: iconst_5
79: invokevirtual #n
82: pop
83: getstatic #n
86: lconst_0
87: invokevirtual #n
90: pop
91: getstatic #n
94: lconst_1
95: invokevirtual #n
98: pop
99: getstatic #n
102: fconst_0
103: invokevirtual #n
106: pop
107: getstatic #n
110: fconst_1
111: invokevirtual #n
114: pop
115: getstatic #n
118: fconst_2
119: invokevirtual #n
122: pop
123: getstatic #n
126: dconst_0
127: invokevirtual #n
130: pop
131: getstatic #n
134: dconst_1
135: invokevirtual #n
138: pop
139: getstatic #n
142: getstatic #n
145: invokevirtual #n
148: pop
149: getstatic #n
152: getstatic #n
155: invokevirtual #n
158: pop
159: getstatic #n
162: getstatic #n
165: invokevirtual #n
168: pop
169: getstatic #n
172: bipush 46
174: invokevirtual #n
177: pop
178: getstatic #n
181: bipush -72
183: invokevirtual #n
186: pop
187: getstatic #n
190: aload_0
191: ldc #n
193: ldc #n
195: invokevirtual #n
198: invokevirtual #n
201: pop
202: getstatic #n
205: aload_0
206: ldc #n
208: ldc #n
210: invokevirtual #n
213: invokevirtual #n
216: pop
217: getstatic #n
220: aload_0
221: ldc #n
223: ldc #n
225: invokevirtual #n
228: invokevirtual #n
231: pop
232: getstatic #n
235: aload_0
236: ldc2_w #n
239: ldc2_w #n
242: invokevirtual #n
245: invokevirtual #n
248: pop
249: getstatic #n
252: aload_0
253: ldc2_w #n
256: ldc2_w #n
259: invokevirtual #n
262: invokevirtual #n
265: pop
266: getstatic #n
269: aload_0
270: ldc2_w #n
273: ldc2_w #n
276: invokevirtual #n
279: invokevirtual #n
282: pop
283: getstatic #n
286: ldc2_w #n
289: invokevirtual #n
292: pop
293: getstatic #n
296: getstatic #n
299: invokestatic #n
302: invokevirtual #n
305: pop
306: return
double drem(double, double);
Code:
0: dload_1
1: dload_3
2: drem
3: dreturn
float frem(float, float);
Code:
0: fload_1
1: fload_2
2: frem
3: freturn
static {};
Code:
0: aconst_null
1: putstatic #n
4: aconst_null
5: putstatic #n
8: aconst_null
9: putstatic #n
12: iconst_2
13: anewarray #n
16: dup
17: iconst_0
18: iconst_1
19: newarray int
21: dup
22: iconst_0
23: iconst_0
24: iastore
25: aastore
26: dup
27: iconst_1
28: iconst_1
29: newarray int
31: dup
32: iconst_0
33: iconst_1
34: iastore
35: aastore
36: putstatic #n
39: iconst_2
40: iconst_2
41: multianewarray #n, 2
45: putstatic #n
48: new #n
51: dup
52: invokespecial #n
55: putstatic #n
58: return
}
>
[INFO]
[ERROR] Tests run: 517, Failures: 5, Errors: 0, Skipped: 13
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
---------------
-- System Information:
Debian Release: trixie/sid
APT prefers plucky-updates
APT policy: (500, 'plucky-updates'), (500, 'plucky-security'), (500, 'plucky')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.14.0-22-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the pkg-java-maintainers
mailing list