Skip to content

Commit 6b32312

Browse files
committed
Update testInterruptWait to not check implementation specific frames
Signed-off-by: Jack Lu <[email protected]>
1 parent 61bc4f6 commit 6b32312

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/jdk/java/lang/Thread/virtual/MonitorWaitNotify.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23+
/*
24+
* ===========================================================================
25+
* (c) Copyright IBM Corp. 2025, 2025 All Rights Reserved
26+
* ===========================================================================
27+
*/
2328

2429
/*
2530
* @test id=default
@@ -514,7 +519,7 @@ void testInterruptWait(int timeout) throws Exception {
514519
}
515520
} catch (InterruptedException e) {
516521
// check stack trace has the expected frames
517-
Set<String> expected = Set.of("wait0", "wait", "run");
522+
Set<String> expected = Set.of("wait", "run");
518523
Set<String> methods = Stream.of(e.getStackTrace())
519524
.map(StackTraceElement::getMethodName)
520525
.collect(Collectors.toSet());

0 commit comments

Comments
 (0)