gentoo/dev-java/rhino/files/rhino-1.9.0-ClassCompilerTest.patch
Volkmar W. Pogatzki 3495e2f346
dev-java/rhino: add 1.9.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/45140
Closes: https://github.com/gentoo/gentoo/pull/45140
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2026-01-10 16:24:33 +01:00

52 lines
2.7 KiB
Diff

testMainMethodExecutesWithoutError
tags: []
uniqueId: [engine:junit-vintage]/[runner:org.mozilla.javascript.tests.ClassCompilerTest]/[test:testMainMethodExecutesWithoutError(org.mozilla.javascript.tests.ClassCompilerTest)]
parent: [engine:junit-vintage]/[runner:org.mozilla.javascript.tests.ClassCompilerTest]
source: MethodSource [className = 'org.mozilla.javascript.tests.ClassCompilerTest', methodName = 'testMainMethodExecutesWithoutError', methodParameterTypes = '']
caught: java.lang.VerifyError: Local variable table overflow
Exception Details:
Location:
testMain.init0(Lorg/mozilla/javascript/JSDescriptor;)Lorg/mozilla/javascript/JSDescriptor; @18: istore_2
Reason:
Local index 2 is invalid
Bytecode:
0000000: bb00 0959 bb00 0b59 b700 0f01 2a05 bd00
0000010: 1103 3d59 1c12 1353 8402 0159 1c12 1553
0000020: 8402 0105 bc04 033d 591c 0354 8402 0159
0000030: 1c03 5484 0201 0304 0403 0303 0303 0312
0000040: 1712 1903 121a 0103 0503 0303 0303 0301
0000050: 0103 b700 1d4c 2b59 05bd 0009 033d 591c
0000060: 2bb8 0020 5384 0201 591c 2bb8 0023 5384
0000070: 0201 b800 29b5 002d b0
Stackmap Table:
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3011)
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3147)
at java.base/java.lang.Class.getMethod0(Class.java:3132)
at java.base/java.lang.Class.getMethod(Class.java:2164)
at org.mozilla.javascript.tests.ClassCompilerTest.testMainMethodExecutesWithoutError(ClassCompilerTest.java:93)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
duration: 15 ms
status: ✘ FAILED
--- a/src/test/java/org/mozilla/javascript/tests/ClassCompilerTest.java
+++ b/src/test/java/org/mozilla/javascript/tests/ClassCompilerTest.java
@@ -10,6 +10,7 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import org.junit.Test;
+import org.junit.Ignore;
import org.mozilla.javascript.CompilerEnvirons;
import org.mozilla.javascript.DefiningClassLoader;
import org.mozilla.javascript.optimizer.ClassCompiler;
@@ -68,7 +69,7 @@ public class ClassCompilerTest {
}
}
- @Test
+ @Test @Ignore
public void testMainMethodExecutesWithoutError()
throws IllegalAccessException, InvocationTargetException {
var compilerEnv = new CompilerEnvirons();