A problem in native methods implementation of GtkToolkit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

A class, gnu.java.awt.peer.gtk.GtkToolkit, has serveral native methods including gtkInit() and gtkMain().
The native implementation in gnu_java_awt_peer_gtk_GtkToolkit.c declares a variable of "static jclass gtktoolkit" which is assigned by JNI call, (*env)->FindClass(env, "gnu/java/awt/peer/gtk/GtkMainThread") in gtkInit().

A problem is that gtktoolkit is used in gtkMain() while it is remained as a local reference, so that it might occur errors.

I think gtktoolkit should be a global reference.

How about this?

[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux