This is the mail archive of the java-patches@sources.redhat.com 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]

Remove Window.java hack


2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>

 * java/awt/Window.java (addNotify): Remove peer casting hack now that

 gcj/312 is fixed.

Index: java/awt/Window.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/java/awt/Window.java,v
retrieving revision 1.7
diff -u -r1.7 Window.java
--- Window.java 2000/10/02 05:14:25     1.7
+++ Window.java 2000/12/18 21:16:22
@@ -102,8 +102,7 @@
   public void addNotify()
   {
     if (peer == null)
-      // FIXME: This cast should NOT be required. ??? Compiler bug
???
-      peer = (ComponentPeer) getToolkit ().createWindow (this);
+      peer = getToolkit ().createWindow (this);
     super.addNotify ();
   }




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