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

Doc for java.beans.IndexedPropertyDescriptor.getPropertyType() is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 5.0
    • 1.4.0, 5.0
    • docs
    • b28
    • generic, sparc
    • generic, solaris_2.6

    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.

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

      Attachments

        Issue Links

          Activity

            People

              shommel Scott Hommel (Inactive)
              sdasunw Sda Sda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: