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

javadoc for java.beans.EventSetDescriptor is not complete

XMLWordPrintable

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

      Name: dsR10051 Date: 04/24/2001


      Javadoc for all constructors of class
      java.beans.EventSetDescriptor
      does not specify the behavior of EventSetDescriptor object
      if String eventSetName parameter is null. For each reference type argument,
      the behavior when null is passed in should be specified.
      See
      http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method
      for details.
      Besides, the behavior of constructor
      public EventSetDescriptor(Class sourceClass, String eventSetName,
              Class listenerType, String listenerMethodName)
      has been changed in jdk1.4 in this case. Now it throws NullPointerException,
      in jdk1.3 it accepts null value. It is the cause of JCK failure (#4423723).
      Evaluation of JDK team for this bug says that "JCK test
      which passes null as the eventSetName to the constructor *doesn't* make sense
      since the javadoc for the ctor doesn't claim that null is a valid parameter".
      Javadoc should claim null as parameter (see http link above) to allow
      JCK team writes or updates test correctly.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: