-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
b78
-
sparc
-
solaris_2.6
Name: dsR10051 Date: 02/14/2002
Javadoc for method of class java.beans.PropertyDescriptor
public Class getPropertyType()
is incorrect. It says:
"
/**
* Gets the Class object for the property.
*
* @return The Java type info for the property. Note that
* the "Class" object may describe a built-in Java type such as "int".
* The result may be "null" if this is an indexed property that
* does not support non-indexed access.
* <p>
* This is the type that will be returned by the ReadMethod.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*/
But the read method may be null, if the property can't be read. In this case
method returns the type of write method's argument. It should be documentd.
======================================================================
Javadoc for method of class java.beans.PropertyDescriptor
public Class getPropertyType()
is incorrect. It says:
"
/**
* Gets the Class object for the property.
*
* @return The Java type info for the property. Note that
* the "Class" object may describe a built-in Java type such as "int".
* The result may be "null" if this is an indexed property that
* does not support non-indexed access.
* <p>
* This is the type that will be returned by the ReadMethod.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*/
But the read method may be null, if the property can't be read. In this case
method returns the type of write method's argument. It should be documentd.
======================================================================