Skip to content

Commit

Permalink
Disable test on JDK 16 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed May 6, 2024
1 parent ab9629d commit c880e55
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ private void notTheRealCauseOfTheTimeout() {
@Test
public void lookingForStuckThread_threadGroupNotLeaked() throws Throwable {
assumeTrue(lookingForStuckThread);
assumeTrue("Thread groups can no longer be destroyed on JDK 16 and later", System.getProperty("java.vm.specification.version").compareTo("16") < 0);

final AtomicReference<ThreadGroup> innerThreadGroup = new AtomicReference<ThreadGroup>();
final AtomicReference<Thread> innerThread = new AtomicReference<Thread>();
final ThreadGroup outerThreadGroup = currentThread().getThreadGroup();
Expand Down

0 comments on commit c880e55

Please sign in to comment.