Index: java/awt/image/ByteLookupTable.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/awt/image/ByteLookupTable.java,v retrieving revision 1.1 diff -u -r1.1 ByteLookupTable.java --- java/awt/image/ByteLookupTable.java 22 Jul 2004 19:45:38 -0000 1.1 +++ java/awt/image/ByteLookupTable.java 13 Oct 2004 18:55:54 -0000 @@ -61,7 +61,7 @@ * * @param offset Offset to be subtracted. * @param data Array of lookup tables. - * @exception IllegalArgumentException if offset < 0 or data.length < 1. + * @exception IllegalArgumentException if offset < 0 or data.length < 1. */ public ByteLookupTable(int offset, byte[][] data) throws IllegalArgumentException @@ -78,7 +78,7 @@ * * @param offset Offset to be subtracted. * @param data Lookup table for all components. - * @exception IllegalArgumentException if offset < 0. + * @exception IllegalArgumentException if offset < 0. */ public ByteLookupTable(int offset, byte[] data) throws IllegalArgumentException @@ -114,7 +114,7 @@ throws ArrayIndexOutOfBoundsException { if (dst == null) - dst = new int[numComponents]; + dst = new int[src.length]; if (data.length == 1) for (int i=0; i < src.length; i++) @@ -147,7 +147,7 @@ throws ArrayIndexOutOfBoundsException { if (dst == null) - dst = new byte[numComponents]; + dst = new byte[src.length]; if (data.length == 1) for (int i=0; i < src.length; i++) Index: java/awt/image/ShortLookupTable.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/awt/image/ShortLookupTable.java,v retrieving revision 1.1 diff -u -r1.1 ShortLookupTable.java --- java/awt/image/ShortLookupTable.java 22 Jul 2004 19:45:38 -0000 1.1 +++ java/awt/image/ShortLookupTable.java 13 Oct 2004 18:55:54 -0000 @@ -61,7 +61,7 @@ * * @param offset Offset to be subtracted. * @param data Array of lookup tables. - * @exception IllegalArgumentException if offset < 0 or data.length < 1. + * @exception IllegalArgumentException if offset < 0 or data.length < 1. */ public ShortLookupTable(int offset, short[][] data) throws IllegalArgumentException @@ -78,7 +78,7 @@ * * @param offset Offset to be subtracted. * @param data Lookup table for all components. - * @exception IllegalArgumentException if offset < 0. + * @exception IllegalArgumentException if offset < 0. */ public ShortLookupTable(int offset, short[] data) throws IllegalArgumentException @@ -114,7 +114,7 @@ throws ArrayIndexOutOfBoundsException { if (dst == null) - dst = new int[numComponents]; + dst = new int[src.length]; if (data.length == 1) for (int i=0; i < src.length; i++) @@ -147,7 +147,7 @@ throws ArrayIndexOutOfBoundsException { if (dst == null) - dst = new short[numComponents]; + dst = new short[src.length]; if (data.length == 1) for (int i=0; i < src.length; i++)