United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4616051 : java.awt.image.CropImageFilter.setProperties() has incorrect statement

Details
Type:
Bug
Submit Date:
2001-12-19
Status:
Closed
Updated Date:
2003-10-21
Project Name:
JDK
Resolved Date:
2003-09-29
Component:
docs
OS:
solaris_7
Sub-Component:
guides
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (tiger)

Related Reports

Sub Tasks

Description
The spec of setProperties() method in java.awt.image.CropImageFilter states:

"Passes along the properties from the source object after adding a property
indicating the cropped region. "

However, from looking at the source code of this method, it calls 
the setProperties() method of its parent class -- ImageFilter, which 
according to its spec adds another property indicating the ImageFilter class.
Therefore, two properties instead of one are added. The spec needs to 
make clear of it.

The same problem occurs on the spec of 
java.awt.image.ReplicateScaleFilter.setProperties().

                                    

Comments
EVALUATION

I'll add the following to the setProperties method of CropImageFilter.java and
ReplicateScaleFilter.java:

* This method invokes <code>super.setProperties</code>,
* which might result in additional properties being added.

The doc already links to the superclass's version of the
method, so it'll be easy for people to check what it does.
###@###.### 2003-09-15
                                     
2003-09-15
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
generic
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b22

VERIFIED IN:
tiger-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together