Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4638075

DOC: Doc for java.beans.PropertyDescriptor.getPropertyType() is incorrect.

XMLWordPrintable

    • 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.

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

            malenkov Sergey Malenkov (Inactive)
            sdasunw Sda Sda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: