Commit 2d25461b by Thomas Fitzsimmons Committed by Thomas Fitzsimmons

natThread.cc (countStackFrames): Do not throw UnsupportedOperationException.

2006-05-29  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* java/lang/natThread.cc (countStackFrames): Do not throw
	UnsupportedOperationException.
	(resume): Likewise.
	(stop): Likewise.
	(suspend): Likewise.

From-SVN: r114218
parent 9268b7cb
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> 2006-05-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS. * configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS.
......
...@@ -20,7 +20,6 @@ details. */ ...@@ -20,7 +20,6 @@ details. */
#include <java/lang/Thread.h> #include <java/lang/Thread.h>
#include <java/lang/ThreadGroup.h> #include <java/lang/ThreadGroup.h>
#include <java/lang/IllegalArgumentException.h> #include <java/lang/IllegalArgumentException.h>
#include <java/lang/UnsupportedOperationException.h>
#include <java/lang/IllegalThreadStateException.h> #include <java/lang/IllegalThreadStateException.h>
#include <java/lang/InterruptedException.h> #include <java/lang/InterruptedException.h>
#include <java/lang/NullPointerException.h> #include <java/lang/NullPointerException.h>
...@@ -91,8 +90,10 @@ jint ...@@ -91,8 +90,10 @@ jint
java::lang::Thread::countStackFrames (void) java::lang::Thread::countStackFrames (void)
{ {
// NOTE: This is deprecated in JDK 1.2. // 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; return 0;
} }
...@@ -150,8 +151,9 @@ void ...@@ -150,8 +151,9 @@ void
java::lang::Thread::resume (void) java::lang::Thread::resume (void)
{ {
checkAccess (); checkAccess ();
throw new UnsupportedOperationException
(JvNewStringLatin1 ("Thread.resume unimplemented")); // Old applets still call this method. Rather than throwing
// UnsupportedOperationException we simply fail silently.
} }
void void
...@@ -335,16 +337,18 @@ void ...@@ -335,16 +337,18 @@ void
java::lang::Thread::stop (java::lang::Throwable *) java::lang::Thread::stop (java::lang::Throwable *)
{ {
checkAccess (); checkAccess ();
throw new UnsupportedOperationException
(JvNewStringLatin1 ("Thread.stop unimplemented")); // Old applets still call this method. Rather than throwing
// UnsupportedOperationException we simply fail silently.
} }
void void
java::lang::Thread::suspend (void) java::lang::Thread::suspend (void)
{ {
checkAccess (); 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; static int nextThreadNumber = 0;
......
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