Hi,
the attached patch adds the 4th 8 to the bits4 field in BufferedImage. With that
patch I could fix a lot of ArrayIndexOutOfBoundsExceptions in
ColorComponentModel and ColorModel.

I wrote that from my basic understanding of color modells and hope it is
correct. At least the app which is depending on this runs much better.

The ChangeLog:

2006-06-06  Robert Schuster  <[EMAIL PROTECTED]>

        * java/awt/BufferedImage.java: Added fourth 8 to bits4 field.

cya
Robert
Index: java/awt/image/BufferedImage.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/image/BufferedImage.java,v
retrieving revision 1.13
diff -u -r1.13 BufferedImage.java
--- java/awt/image/BufferedImage.java	4 Nov 2005 21:39:52 -0000	1.13
+++ java/awt/image/BufferedImage.java	6 Jun 2006 07:38:19 -0000
@@ -80,7 +80,7 @@
                           TYPE_BYTE_INDEXED   = 13;
   
   static final int[] bits3 = { 8, 8, 8 };
-  static final int[] bits4 = { 8, 8, 8 };
+  static final int[] bits4 = { 8, 8, 8, 8 };
   static final int[] bits1byte = { 8 };
   static final int[] bits1ushort = { 16 };
   

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to