This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] merge from java-gui-branch


Hi,

On Fri, 2004-11-26 at 05:34, graydon hoare wrote:
> except that some of the examples do odd -- well frankly "impossible" -- 
> things like jump to functions which aren't actually called anywhere. so 
> we think these bugs relate more to the recent BC ABI merge than the 
> actual gui changes

I need to recheck with a clean tree without this patch applied.
But the following change made both the GNU Classpath awt demo and the
mauve visual test engine work just fine for me (without this patch they
crash whenever you try to do something with menus):

--- gnu/java/awt/peer/gtk/GtkMenuItemPeer.java  2 Sep 2004 05:10:11 -0000       1.5
+++ gnu/java/awt/peer/gtk/GtkMenuItemPeer.java  26 Nov 2004 04:47:09 -0000
@@ -74,8 +97,10 @@
       }
     else // parent instanceof Menu
       {
-       ((GtkMenuPeer)((Menu)parent).getPeer ()).addItem (this,
-                                                         item.getShortcut ());
+       Menu m = (Menu) parent;
+       GtkMenuPeer gmp = (GtkMenuPeer) m.getPeer();
+       MenuShortcut ms = item.getShortcut();
+       gmp.addItem(this, ms);
       }
   }

The patch should not change the semantics of the code. But obviously it
does...

Hope this helps tracking down what goes wrong.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]