JDK-4616051 : java.awt.image.CropImageFilter.setProperties() has incorrect statement
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: docs
  • Sub-Component: guides
  • Priority: P4
  • Affected Version: 1.4.0
  • OS: solaris_7
  • CPU: sparc
  • Submit Date: 2001-12-19
  • Updated Date: 2017-05-16
  • Resolved Date: 2003-09-29
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.
Other
5.0 tigerFixed
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
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

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