mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 08:50:46 +08:00
Thread.java (setDaemon): Check startable_flag, not isAlive().
* java/lang/Thread.java (setDaemon): Check startable_flag, not isAlive(). From-SVN: r57906
This commit is contained in:
parent
fcce224d2a
commit
8086481ce6
@ -1,3 +1,8 @@
|
||||
2002-10-06 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* java/lang/Thread.java (setDaemon): Check startable_flag,
|
||||
not isAlive().
|
||||
|
||||
2002-10-07 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/nio/Buffer.java: New stub file.
|
||||
|
@ -137,7 +137,7 @@ public class Thread implements Runnable
|
||||
public final void setDaemon (boolean status)
|
||||
{
|
||||
checkAccess ();
|
||||
if (isAlive ())
|
||||
if (!startable_flag)
|
||||
throw new IllegalThreadStateException ();
|
||||
daemon_flag = status;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user