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

DOC: spec for java.beans.EventSetDescriptor should be more precise

XMLWordPrintable

    • Fix Understood
    • generic, sparc
    • generic, solaris_2.6

      Name: sdR10048 Date: 03/03/2004


      Filed By : SPB JCK team (###@###.###)
      JDK : 1.5.0-beta2-b40
      JCK : 1.5
      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto

      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      The package spec for java.beans states:

      / Unless explicitly stated, null values or empty Strings are not valid parameters
        for the methods in this package. You may expect to see exceptions if these
        parameters are used. /


      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      As for us the given spec is not enough presice.
      It is unknown whether passing the null-param (or "") will cause an exception
      and what kind of exception should be expected - NullPointerException,
      IllegalArgumentException etc.

      Both examples given in http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method
      regarding null-parameters clearly specify the expected behaviour.

      Stops the JCK test development.

      JCK test source location:
      ==========================
      /java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

      The testcases that are touched:
      api/java_beans/EventSetDescriptor/descriptions.html#Ctor1[EventSetDescriptor0002]
      api/java_beans/EventSetDescriptor/descriptions.html#Ctor2[EventSetDescriptor0006]
      api/java_beans/EventSetDescriptor/descriptions.html#Ctor3[EventSetDescriptor0011]
      api/java_beans/EventSetDescriptor/descriptions.html#Ctor4[EventSetDescriptor0016]
      api/java_beans/EventSetDescriptor/descriptions.html#Ctor5[EventSetDescriptor0022]
      api/java_beans/EventSetDescriptor/descriptions.html#Ctor6[EventSetDescriptor0028]


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

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

              Created:
              Updated:
              Imported:
              Indexed: