United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 4275538 DirectColorModel.isCompatibleRaster is overly strict
4275538 : DirectColorModel.isCompatibleRaster is overly strict

Details
Type:
Bug
Submit Date:
1999-09-24
Status:
Resolved
Updated Date:
1999-10-05
Project Name:
JDK
Resolved Date:
1999-10-05
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.3.0

Related Reports
Relates:

Sub Tasks

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


                                     
2004-06-14
SUGGESTED FIX

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

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

Reimplemented isCompatibleRaster method to remove the requirement that
the number of sample bits be the same.

jim.graham@Eng 1999-09-27
                                     
1999-09-27



Hardware and Software, Engineered to Work Together