From d1ee83813d3719902016705cfb1898b1bb005027 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 11 Jun 2004 10:42:59 +0000 Subject: [PATCH] jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to NoSuchMethodError. * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to NoSuchMethodError. From-SVN: r82972 --- libjava/ChangeLog | 5 +++++ libjava/jni.cc | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 5b1c89ee91c..51e82229b00 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-06-10 Mark Wielaard + + * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to + NoSuchMethodError. + 2004-06-11 Jerry Quinn * java/util/GregorianCalendar.java (computeTime): Skip buggy formulae 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 #include #include +#include #include #include #include @@ -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) { -- 2.30.2