+2006-05-29 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * java/lang/natThread.cc (countStackFrames): Do not throw
+ UnsupportedOperationException.
+ (resume): Likewise.
+ (stop): Likewise.
+ (suspend): Likewise.
+
2006-05-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS.
#include <java/lang/Thread.h>
#include <java/lang/ThreadGroup.h>
#include <java/lang/IllegalArgumentException.h>
-#include <java/lang/UnsupportedOperationException.h>
#include <java/lang/IllegalThreadStateException.h>
#include <java/lang/InterruptedException.h>
#include <java/lang/NullPointerException.h>
java::lang::Thread::countStackFrames (void)
{
// NOTE: This is deprecated in JDK 1.2.
- throw new UnsupportedOperationException
- (JvNewStringLatin1 ("Thread.countStackFrames unimplemented"));
+
+ // Old applets still call this method. Rather than throwing
+ // UnsupportedOperationException we simply fail silently.
+
return 0;
}
java::lang::Thread::resume (void)
{
checkAccess ();
- throw new UnsupportedOperationException
- (JvNewStringLatin1 ("Thread.resume unimplemented"));
+
+ // Old applets still call this method. Rather than throwing
+ // UnsupportedOperationException we simply fail silently.
}
void
java::lang::Thread::stop (java::lang::Throwable *)
{
checkAccess ();
- throw new UnsupportedOperationException
- (JvNewStringLatin1 ("Thread.stop unimplemented"));
+
+ // Old applets still call this method. Rather than throwing
+ // UnsupportedOperationException we simply fail silently.
}
void
java::lang::Thread::suspend (void)
{
checkAccess ();
- throw new UnsupportedOperationException
- (JvNewStringLatin1 ("Thread.suspend unimplemented"));
+
+ // Old applets still call this method. Rather than throwing
+ // UnsupportedOperationException we simply fail silently.
}
static int nextThreadNumber = 0;