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

SPEC BUG: java.awt.event.ActionEvent: nul reaction (command == null)

XMLWordPrintable

    • b39
    • sparc
    • solaris_2.6
    • Verified



      Name: sdR10048 Date: 10/25/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b25"
      JCK : 1.5
      Platform[s] : Solaris
      switch/Mode :
      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
      Failing Test [s] :
      api/java_awt/Event/ActionEvent/descriptions.html#ActionEvent[ActionEvent0008]


      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      public ActionEvent(Object source,
                         int id,
                         String command)
      Constructs an ActionEvent object.

      Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null.

      Parameters:
      source - the object that originated the event
      id - an integer that identifies the event
      command - a string that may specify a command (possibly one of several) associated with the event
      Throws:
      IllegalArgumentException - if source is null

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

      Problem description
      ===================
      Javadoc for the 3 methods:
      ActionEvent(Object source, int id, String command)
      ActionEvent(java.lang.Object,int,java.lang.String,int)
      ActionEvent(java.lang.Object,int,java.lang.String,long,int)

      does not specify the expected behaviour in case 'command' == null.

      This issue has been already desribed in jdk spec bug 4743026 (INT now) but
      it is not fixed. It was a part of bug description and I guess it was just missed.

      To avoid extra 'paper work' I create new bug.


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

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

            sharonz Sharon Zakhour (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: