summaryrefslogtreecommitdiff
path: root/dev-java/javassist/files/javassist-3.30.2-skip_testDeprecatedAttribute.patch
blob: a32c07c34df98bd0ef453c99ca3a9074cf679eef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
There was 1 failure:
1) testDeprecatedAttribute(javassist.bytecode.BytecodeTest)
javassist.NotFoundException: suspend(..) is not found in java.lang.Thread
	at javassist.CtClassType.getDeclaredMethod(CtClassType.java:1356)
	at javassist.bytecode.BytecodeTest.testDeprecatedAttribute(BytecodeTest.java:315)

FAILURES!!!
Tests run: 434,  Failures: 1

The failure occurs with jdk:25 and higher due to method 'suspend'
being removed (https://bugs.openjdk.org/browse/JDK-8359053).
The removal of 'suspend' only affects the test, so we skip the test.

--- a/src/test/javassist/bytecode/BytecodeTest.java
+++ b/src/test/javassist/bytecode/BytecodeTest.java
@@ -310,7 +310,7 @@ public class BytecodeTest extends TestCase {
         assertEquals(0, invoke(obj, "test"));
     }
 
-    public void testDeprecatedAttribute() throws Exception {
+    public void noTestDeprecatedAttribute() throws Exception {
         CtClass cc = loader.get("java.lang.Thread");
         CtMethod m = cc.getDeclaredMethod("suspend");
         MethodInfo minfo = m.getMethodInfo();