Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144071 Details for
Bug 220274
FindClass JNI failure crashes JVM
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for more info
moreinfo.patch (text/plain), 1.54 KB, created by
Anthony Green
on 2006-12-20 01:54:05 UTC
(
hide
)
Description:
Patch for more info
Filename:
MIME Type:
Creator:
Anthony Green
Created:
2006-12-20 01:54:05 UTC
Size:
1.54 KB
patch
obsolete
>--- ./src/jni/org_gnu_glib_GObject.c.sav 2006-03-25 05:17:39.000000000 -0800 >+++ ./src/jni/org_gnu_glib_GObject.c 2006-12-19 17:38:07.000000000 -0800 >@@ -15,6 +15,8 @@ > #include <jg_jnu.h> > #include "gtk_java.h" > >+#include <stdio.h> >+ > #include "org_gnu_glib_GObject.h" > #ifdef __cplusplus > extern "C" c >@@ -792,13 +794,38 @@ > jmethodID stackHandler; > JNIEnv *env = (JNIEnv*)userData; > jstring msg; >+ jthrowable exc; > > (*env)->ExceptionClear(env); >+ > msg = (*env)->NewStringUTF(env, message); > > gobject = (*env)->FindClass(env, "org/gnu/glib/GObject"); >+ fprintf (stderr, "gobject = 0x%x\n", gobject); >+ fprintf (stderr, "XXXX\n"); >+ >+ exc = (*env)->ExceptionOccurred(env); >+ if (exc) { >+ /* We don't do much with the exception, except that >+ we print a debug message for it, clear it, and >+ throw a new exception. */ >+ jclass newExcCls; >+ (*env)->ExceptionDescribe(env); >+ (*env)->ExceptionClear(env); >+ newExcCls = (*env)->FindClass(env, >+ "java/lang/IllegalArgumentException"); >+ if (newExcCls == NULL) { >+ /* Unable to find the exception class, give up. */ >+ return; >+ } >+ (*env)->ThrowNew(env, newExcCls, "thrown from C code"); >+ } >+ >+ fprintf (stderr, "YYYYY\n"); > stackHandler = (*env)->GetStaticMethodID(env, gobject, "printStackTrace", "(Ljava/lang/String;)V"); >+ fprintf (stderr, "ZZZZZ\n"); > (*env)->CallStaticVoidMethod(env, gobject, stackHandler, msg); >+ fprintf (stderr, "DONEDONEDONE!\n"); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220274
: 144071