It was pointed out that I introduced an incompatibility earlier, by
making the method abstract when it should instead throw an
UnsupportedOperationException (and always be overridden)... this
mini-patch fixes it.
Cheers,
Francis
2006-10-10 Francis Kung <[EMAIL PROTECTED]>
* java/awt/image/ColorModel.java (coerceData): Implemented.
Index: java/awt/image/ColorModel.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/image/ColorModel.java,v
retrieving revision 1.34
diff -u -r1.34 ColorModel.java
--- java/awt/image/ColorModel.java 25 Sep 2006 15:38:42 -0000 1.34
+++ java/awt/image/ColorModel.java 10 Oct 2006 15:03:50 -0000
@@ -624,8 +624,12 @@
return cspace;
}
- public abstract ColorModel coerceData(WritableRaster raster,
- boolean isAlphaPremultiplied);
+ public ColorModel coerceData(WritableRaster raster,
+ boolean isAlphaPremultiplied)
+ {
+ // This method should always be overridden, but is not abstract.
+ throw new UnsupportedOperationException();
+ }
protected void coerceDataWorker(WritableRaster raster,
boolean isAlphaPremultiplied)