+2005-01-13 Michael Koch <konqueror@gmx.de>
+
+ PR libgcj/17784
+ * java/lang/Thread.java
+ (Thread): Call checkAccess().
+ (stop): Fixed argument name to match javadoc.
+ * java/lang/natThread.cc
+ (interrupt): Call checkAccess().
+ (stop): Likewise.
+
2005-01-11 Michael Koch <konqueror@gmx.de>
PR libgcj/13972
/* Thread -- an independent thread of executable code
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation
This file is part of GNU Classpath.
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package java.lang;
import gnu.gcj.RawData;
private Thread (Thread current, ThreadGroup g, Runnable r, String n)
{
+ // Make sure the current thread may create a new thread.
+ checkAccess();
+
// The Class Libraries book says ``threadName cannot be null''. I
// take this to mean NullPointerException.
if (n == null)
* @see SecurityManager#checkPermission(Permission)
* @deprecated unsafe operation, try not to use
*/
- public final native void stop(Throwable e);
+ public final native void stop(Throwable t);
/**
* Suspend this Thread. It will not come back, ever, unless it is resumed.
void
java::lang::Thread::interrupt (void)
{
+ checkAccess ();
natThread *nt = (natThread *) data;
_Jv_ThreadInterrupt (nt->thread);
}
void
java::lang::Thread::stop (java::lang::Throwable *)
{
+ checkAccess ();
throw new UnsupportedOperationException
(JvNewStringLatin1 ("Thread.stop unimplemented"));
}