diff options
author | Andrew Haley <aph@cygnus.com> | 2000-02-10 17:16:30 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2000-02-10 17:16:30 +0000 |
commit | 715bdd81177d2e691d07c19c1a4e48d63474ed81 (patch) | |
tree | 050f8341578bf95abc8c7ab48b6e79fd2b1e77ac /libjava/java/lang/natThread.cc | |
parent | ae0a06c54bdf4fa7511c4b65315a05a684ca7c03 (diff) | |
download | gcc-715bdd81177d2e691d07c19c1a4e48d63474ed81.zip gcc-715bdd81177d2e691d07c19c1a4e48d63474ed81.tar.gz gcc-715bdd81177d2e691d07c19c1a4e48d63474ed81.tar.bz2 |
interpret.cc: Don't include fdlibm.h.
2000-02-10 Andrew Haley <aph@cygnus.com>
* interpret.cc: Don't include fdlibm.h.
Replace #if with #ifdef throughout.
Declare extern __ieee754_fmod.
(continue1): Remove op_getfield, op_getstatic, op_putfield,
op_putstatic insns.
* resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
Search class hierarchy for superclass vtable.
* java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
off the end of a pointer list.
* java/lang/natThread.cc (stop): Don't abort, throw an exception
instead.
(suspend): Ditto.
From-SVN: r31897
Diffstat (limited to 'libjava/java/lang/natThread.cc')
-rw-r--r-- | libjava/java/lang/natThread.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libjava/java/lang/natThread.cc b/libjava/java/lang/natThread.cc index 50ab7be..6870f02 100644 --- a/libjava/java/lang/natThread.cc +++ b/libjava/java/lang/natThread.cc @@ -19,6 +19,7 @@ details. */ #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> @@ -306,14 +307,16 @@ java::lang::Thread::start (void) void java::lang::Thread::stop (java::lang::Throwable *) { - JvFail ("java::lang::Thread::stop unimplemented"); + _Jv_Throw (new UnsupportedOperationException + (JvNewStringLatin1 ("java::lang::Thread::stop unimplemented"))); } void java::lang::Thread::suspend (void) { checkAccess (); - JvFail ("java::lang::Thread::suspend unimplemented"); + _Jv_Throw (new UnsupportedOperationException + (JvNewStringLatin1 ("java::lang::Thread::suspend unimplemented"))); } void |