Remove Window.java hack

Bryce McKinlay bryce@albatross.co.nz
Mon Dec 18 13:20:00 GMT 2000


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 ();
   }





More information about the Java-patches mailing list