JDK-4528008 : java.awt.image.FilteredImageSource methods need more detail behavior description
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.4.0,5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_7,windows_xp
  • CPU: generic,x86,sparc
  • Submitted: 2001-11-16
  • Updated: 2017-05-16
  • Resolved: 2003-12-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
5.0 b31Fixed
Related Reports
Relates :  
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



CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b31 tiger-beta VERIFIED IN: tiger-beta2

EVALUATION We should say that these methods shouldn't be called. ###@###.### 2003-11-08