JNI NoSuchMethodError message patch

Mark Wielaard mark@klomp.org
Wed Jun 2 18:25:00 GMT 2004


Hi,

While hunting down a bug in the gtk-peer implementation with Thomas we
were confused by a NoSuchMethodError with no additional information
thrown from JNI code. The following patch adds the method name and
signature to the exception when it is thrown. This would have saved us
quite some time debugging.

2004-06-01  Mark Wielaard  <mark@klomp.org>

        * jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
        NoSuchMethodError.

OK, to commit?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jni-nosuchmethod-message.patch
Type: text/x-patch
Size: 1151 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040602/8849f0b4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040602/8849f0b4/attachment.sig>


More information about the Java-patches mailing list