Commit 8086481c by Mark Wielaard Committed by Mark Wielaard

Thread.java (setDaemon): Check startable_flag, not isAlive().

	* java/lang/Thread.java (setDaemon): Check startable_flag,
	not isAlive().

From-SVN: r57906
parent fcce224d
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment