diff options
author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-11 10:42:59 +0000 |
---|---|---|
committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-11 10:42:59 +0000 |
commit | b7fcd2878c707568e2ae50c742116231dc63c3ea (patch) | |
tree | d89802cdd0289b9a6fc81d3d85ab56d8e41cb9f0 /libjava/jni.cc | |
parent | 86747063f2160145960e695ead7ed7c9db72a904 (diff) | |
download | gcc-b7fcd2878c707568e2ae50c742116231dc63c3ea.tar.gz |
* jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
NoSuchMethodError.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82972 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index 680e0c758df..9d0239b230b 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -1,6 +1,7 @@ // jni.cc - JNI implementation, including the jump table. -/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 + Free Software Foundation This file is part of libgcj. @@ -27,6 +28,7 @@ details. */ #include <java/lang/Throwable.h> #include <java/lang/ArrayIndexOutOfBoundsException.h> #include <java/lang/StringIndexOutOfBoundsException.h> +#include <java/lang/StringBuffer.h> #include <java/lang/UnsatisfiedLinkError.h> #include <java/lang/InstantiationException.h> #include <java/lang/NoSuchFieldError.h> @@ -705,7 +707,10 @@ static jmethodID clazz = clazz->getSuperclass (); } - env->ex = new java::lang::NoSuchMethodError (); + java::lang::StringBuffer *name_sig = + new java::lang::StringBuffer (JvNewStringUTF (name)); + name_sig->append ((jchar) ' ')->append (JvNewStringUTF (s)); + env->ex = new java::lang::NoSuchMethodError (name_sig->toString ()); } catch (jthrowable t) { |