This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
More clone fixes
- To: java-patches at gcc dot gnu dot org
- Subject: More clone fixes
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Thu, 15 Feb 2001 17:42:43 +1300
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;