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 38a638b commit ed47b7f
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 ed47b7f

Please sign in to comment.