mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8320786: Remove ThreadGroup.stop
Reviewed-by: rriggs, dholmes, jpai
This commit is contained in:
parent
af5c49226c
commit
86623aa41d
2 changed files with 0 additions and 17 deletions
|
@ -554,17 +554,6 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Throws {@code UnsupportedOperationException}.
|
|
||||||
*
|
|
||||||
* @deprecated This method was originally specified to stop all threads in
|
|
||||||
* the thread group. It was inherently unsafe.
|
|
||||||
*/
|
|
||||||
@Deprecated(since="1.2", forRemoval=true)
|
|
||||||
public final void stop() {
|
|
||||||
throw new UnsupportedOperationException();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interrupts all {@linkplain Thread#isAlive() live} platform threads in
|
* Interrupts all {@linkplain Thread#isAlive() live} platform threads in
|
||||||
* this thread group and its subgroups.
|
* this thread group and its subgroups.
|
||||||
|
|
|
@ -732,12 +732,6 @@ class BasicTests {
|
||||||
group.list();
|
group.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void testStop() {
|
|
||||||
ThreadGroup group = new ThreadGroup("foo");
|
|
||||||
assertThrows(UnsupportedOperationException.class, () -> group.stop());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNull1() {
|
void testNull1() {
|
||||||
assertThrows(NullPointerException.class,
|
assertThrows(NullPointerException.class,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue