JDK-4641084 : Doc for java.beans.IndexedPropertyDescriptor.getPropertyType() is incorrect
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.4.0,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_2.6
  • CPU: generic,sparc
  • Submitted: 2002-02-21
  • Updated: 2017-05-16
  • Resolved: 2004-09-24
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
5.0 b28Fixed
Related Reports
Relates :  
Description
Name: dsR10051			Date: 02/21/2002


Javadoc for method of class java.beans.IndexedPropertyDescriptor
public Class getIndexedPropertyType()
is incorrect. It says:
    /**
     * Gets the Class object of the indexed properties' type.
     * This is the type that will be returned by the indexedReadMethod.
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     *
     * @return The Java Class for the indexed properties type.  Note that
     * the Class may describe a primitive Java type such as "int".
     */
    public Class getIndexedPropertyType() {
But the indexed read method may be null, if the property isn't indexed 
or is read-only. In this case method returns the type of second parameter
of indexedWriteMethod. It should be documented.

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger tiger-beta FIXED IN: tiger tiger-beta INTEGRATED IN: tiger-b28 tiger-beta VERIFIED IN: 1.5.0_01
25-09-2004

EVALUATION Engineering suggests the following fix: /** * Gets the <code>Class</code> object of the indexed properties' type. * The returned <code>Class</code> may describe a primitive * type such as <code>int</code>. * * @return The <code>Class</code> for the indexed properties' type; * may return <code>null</code> if the type cannot be determined. */ ###@###.### 2003-09-02
02-09-2003