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]

[gui][patch] disable broken Box.java code


hi,

it appears gcj is still having some visibility problems. I was unable to get Box.java to compile off a fresh checkout from java-gui-branch, so have made the following change, commenting out the offending inheritence-from-protected-class.

-graydon

2004-06-08 Graydon Hoare <graydon@redhat.com>

	* javax/swing/Box.java: Temporarily comment out code
	broken due to visibility bug.

--- javax/swing/Box.java	8 Jun 2004 08:42:52 -0000	1.3.2.6
+++ javax/swing/Box.java	9 Jun 2004 03:39:10 -0000	1.3.2.7
@@ -55,7 +55,9 @@
 {
   private static final long serialVersionUID = 1525417495883046342L;
   
-  protected class AccessibleBox extends AccessibleAWTContainer
+  protected class AccessibleBox 
+  // FIXME: disable to make libjava compile; visibility rules are broken
+  // extends Container.AccessibleAWTContainer
   {
     private static final long serialVersionUID = -7775079816389931944L;
   
@@ -73,7 +75,9 @@
   {
     private static final long serialVersionUID = -1204263191910183998L;
   
-    protected class AccessibleBoxFiller extends AccessibleAWTComponent
+    protected class AccessibleBoxFiller 
+    // FIXME: disable to make libjava compile; visibility rules are broken
+    // extends Component.AccessibleAWTComponent
     {
       private static final long serialVersionUID = 164963348357479321L;
       
@@ -105,6 +109,7 @@
     
     public AccessibleContext getAccessibleContext()
     {
+      // FIXME: disable to make libjava compile; visibility rules are broken      
 //      if (accessibleContext == null)
 //        accessibleContext = new AccessibleBoxFiller();
       return accessibleContext;
@@ -178,8 +183,8 @@
   
   public AccessibleContext getAccessibleContext()
   {
-    if (accessibleContext == null)
-      accessibleContext = new AccessibleBox();
+    //     if (accessibleContext == null)
+    //       accessibleContext = new AccessibleBox();
     return accessibleContext;
   }
   

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