[PATCH] fix for BasicMenuUI - getPath()

Olga Rodimina rodimina@redhat.com
Mon May 31 20:23:00 GMT 2004


Hi,

Here is the patch that should fix public/private access method problem
in BasicMenuUI.java.

However it is hard for me to test this at this moment, since I am not
observing the error with gcj.

Please let me know if it fixes the problem.

Thanks,
Olga.
-------------- next part --------------
? .snprj
? libjavaTRUNK.proj
? patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2848
diff -c -p -u -r1.2848 ChangeLog
--- ChangeLog	31 May 2004 09:23:02 -0000	1.2848
+++ ChangeLog	31 May 2004 19:01:30 -0000
@@ -1,3 +1,9 @@
+2004-05-31  Olga Rodimina  <rodimina@redhat.com>
+
+	* javax/swing/plaf/basic/BasicMenuUI.java:
+	(MouseEntered): Do not call getPath() from MenuSelectionManager.
+	Call getPath() from super class instead.
+
 2004-05-31  Michael Koch  <konqueror@gmx.de>
 
 	* java/io/SequenceInputStream.java:
Index: javax/swing/plaf/basic/BasicMenuUI.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/plaf/basic/BasicMenuUI.java,v
retrieving revision 1.2
diff -c -p -u -r1.2 BasicMenuUI.java
--- javax/swing/plaf/basic/BasicMenuUI.java	27 May 2004 06:17:42 -0000	1.2
+++ javax/swing/plaf/basic/BasicMenuUI.java	31 May 2004 19:01:32 -0000
@@ -296,7 +296,7 @@ public class BasicMenuUI extends BasicMe
     public void mouseEntered(MouseEvent e)
     {
       MenuSelectionManager manager = MenuSelectionManager.defaultManager();
-      manager.setSelectedPath(manager.getPath((Component) e.getSource()));
+      manager.setSelectedPath(getPath());
       manager.processMouseEvent(e);
 
       JMenu subMenu = (JMenu) menuItem;


More information about the Java-patches mailing list