Index: src/main/java/common/java/awt/image/LookupOp.java =================================================================== --- src/main/java/common/java/awt/image/LookupOp.java (revision 488948) +++ src/main/java/common/java/awt/image/LookupOp.java (working copy) @@ -59,7 +59,7 @@ public LookupOp(LookupTable lookup, RenderingHints hints) { if (lookup == null){ - throw new NullPointerException(Messages.getString("awt.01", "lookup")); + throw new NullPointerException(Messages.getString("awt.01", "lookup")); //$NON-NLS-1$ //$NON-NLS-2$ } lut = lookup; this.hints = hints; @@ -195,15 +195,11 @@ dst = createCompatibleDestImage(src, null); } else { if (src.getWidth() != dst.getWidth()){ - throw new IllegalArgumentException( - "Source and destination images do not have " + - "the same width!"); + throw new IllegalArgumentException(Messages.getString("awt.291")); //$NON-NLS-1$ } if (src.getHeight() != dst.getHeight()){ - throw new IllegalArgumentException( - "Source and destination images do not have " + - "the same height!"); + throw new IllegalArgumentException(Messages.getString("awt.292")); //$NON-NLS-1$ } if (!srcCM.equals(dst.getColorModel())) { Index: src/main/java/common/org/apache/harmony/awt/internal/nls/messages.properties =================================================================== --- src/main/java/common/org/apache/harmony/awt/internal/nls/messages.properties (revision 488947) +++ src/main/java/common/org/apache/harmony/awt/internal/nls/messages.properties (working copy) @@ -480,6 +480,8 @@ awt.28E=Length of dataArray is less than size + offset awt.28F=Source and destination rasters do not have the same width! awt.290=Source and destination rasters do not have the same height! +awt.291=Source and destination images do not have the same width! +awt.292=Source and destination images do not have the same height! awt.err.00=file dialog {0} error! awt.err.01=error: {0}