Re: 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. 

That's correct. I'll fix this. Thanks.

Cheers, Roman

-- 
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-0
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt




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

  Powered by Linux