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]

More clone fixes


These were needed to bring libjava back to bootstrap status.

regards

  [ bryce ]


2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>

	* gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
	* gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call 
	Rectangle.clone(), not Object.clone().

Index: gnu/awt/j2d/DirectRasterGraphics.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/gnu/awt/j2d/DirectRasterGraphics.java,v
retrieving revision 1.1
diff -u -r1.1 DirectRasterGraphics.java
--- DirectRasterGraphics.java	2000/10/22 17:46:09	1.1
+++ DirectRasterGraphics.java	2001/02/15 04:33:21
@@ -79,4 +79,6 @@
    * Detach previously mapped pixel data from a raster object.
    */
   public void unmapRaster(MappedRaster mappedRaster);
+  
+  public Object clone();
 }
Index: gnu/awt/j2d/IntegerGraphicsState.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/gnu/awt/j2d/IntegerGraphicsState.java,v
retrieving revision 1.1
diff -u -r1.1 IntegerGraphicsState.java
--- IntegerGraphicsState.java	2000/10/22 17:46:09	1.1
+++ IntegerGraphicsState.java	2001/02/15 04:33:21
@@ -69,7 +69,6 @@
     super.dispose();
   }
   
-
   // -------- Graphics methods:
   
   public void setColor(Color color)
@@ -101,7 +100,7 @@
   {
     if (clip instanceof Rectangle)
       {
-	Rectangle clipRect = (Rectangle) clip.clone();
+	Rectangle clipRect = (Rectangle) ((Rectangle) clip).clone();
 	clipRect.x += tx;
 	clipRect.y += ty;
 	

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