According to the bug evaluation of 4527255:
"The user is not supposed to be calling addConsumer(),
etc. These methods are only called by classes that implement the ImageConsumer/ImageProducer interfaces."
However, there is no document saying that addConsumer(), removeConsumer() and
isConsumer() should not be called by users. It also needs to be specified what
happens when the metods are called in an invalid context (e.g. from the class
not implementing ImageConsumer/ImageProducer)
In addition, the following methods in java.awt.image.FilteredImageSource need to
specify their behaviors when null is passed as the argument.
addConsumer(ImageConsumer ic)
isConsumer(ImageConsumer ic)
removeConsumer(ImageConsumer ic)
requestTopDownLeftRightResend(ImageConsumer ic)
startProduction(ImageConsumer ic)
Name: vsR10238 Date: 09/24/2003
The following JCK1.5 (b04) tests:
api/java_awt/Image/FilteredImageSource/index.html#Consumer [FilteredImageSource0005, FilteredImageSource0006]
api/java_awt/Image/FilteredImageSource/index.html#RTDLRR [FilteredImageSource0007]
fail due to this bug on Tiger b18-b20
The test cases try to call FilteredImageSource.*Consumer with a null argument
and fail with:
FilteredImageSource0006: Failed. NullPointerException expected
###@###.###
======================================================================