JDK-4275538 : DirectColorModel.isCompatibleRaster is overly strict
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1999-09-24
  • Updated: 1999-10-05
  • Resolved: 1999-10-05
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 Availability Release.

To download the current JDK release, click here.
Other
1.3.0 kestrelFixed
Related Reports
Relates :  
Description
The isCompatibleRaster() method in DirectColorModel requires that the
DirectColorModel have the same number of pixelbits as the Raster's
SampleModel.  Unfortunately, since the SampleModel will calculate the
minimum number of bits required to hold all of the sample masks and since
the DirectColorModel allows the pixelbits given to it to exceed that number,
the two might not match for a DirectColorModel with an overly generous
value for pixelbits.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: kestrel FIXED IN: kestrel INTEGRATED IN: kestrel
14-06-2004

WORK AROUND Always specify the smallest number of bits that holds all of the masks for a DirectColorModel.
11-06-2004

SUGGESTED FIX Relax DirectColorModel to not require equality between the ColorModel's pixelbits and the SampleModel.
11-06-2004

EVALUATION Reimplemented isCompatibleRaster method to remove the requirement that the number of sample bits be the same. jim.graham@Eng 1999-09-27
27-09-1999