[cp-patches] Patch: Applet seg. fault fixes

Lillian Angel langel at redhat.com
Tue Jun 20 20:37:50 UTC 2006


This patch fixes some seg faults fitzsim found when running a couple of
Sun's demo applets. I have added a link to these demos on the wiki.

2006-06-20  Lillian Angel  <langel at redhat.com>

        * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
        (create): Added check to prevent Seg Fault. Should not
        set the label if it is null.
        * gnu/java/awt/peer/gtk/GtkLabelPeer.java
        (setText): Changed to be a non-native function. Calls
        setNativeText if the String parameter is non-null.
        (setNativeText): Replaces old native setText function.
        * include/gnu_java_awt_peer_gtk_GtkLabelPeer.h: Regenerated.
        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
        (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setText): Removed.
        Replaced by 	
	Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setNativeText.
        (Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setNativeText): 
	Replaced Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setText.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 3670 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060620/8c4498f8/patch.bin


More information about the Classpath-patches mailing list