[PATCH] More List fixes

Fernando Nasser fnasser@redhat.com
Mon Dec 15 20:38:00 GMT 2003

Tom and Bryce,

Trying to avoid changes to ListPeer.java (and so dodging the question
of compatibility) I used reflection to check if the method is available.
I've optimized to check just once.

Should I check this in instead of the original patch?

Regards to all,

2003-12-12  Fernando Nasser  <fnasser@redhat.com>

         * java/awt/List.java (replaceItem): Use direct implementation
         if available.
         * gnu/java/awt/peer/gtk/GtkListPeer.java: Declare replaceItem as
         (handleEvent): Only generate ActionEvent on double-click if
         something is selected.
         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
         (Java_gnu_java_awt_peer_gtk_GtkListPeer_replaceItem): New function.
         Native implementation of replaceItem.

Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20031215/e4ce8ba8/attachment.ksh>

More information about the Java-patches mailing list