Bug in ColorModel

BENOWITZ,EDWARD GEORGE eddieb@ucla.edu
Thu Jan 24 19:06:00 GMT 2002


I don't have linux or gcj, so I can't patch this
myself, ... but glancing at the source of

java.awt.image.ColorModel

The following seems wrong:

/**
   * @see #getRed(Object)
   */
  public int getAlpha(Object inData) {
    return getBlue(getPixelFromArray(inData));
  }

Thanks,
Eddie Benowitz





More information about the Java mailing list