JDK-4743026 : java.awt.event.ActionEvent: null reaction
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.4.0,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_7
  • CPU: generic,sparc
  • Submitted: 2002-09-06
  • Updated: 2017-05-16
  • Resolved: 2003-09-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Description
Name: sdR10048			Date: 09/06/2002


JDK1.4 doc for method java.awt.event.ActionEvent(Object source, int
id, String command) does not specify expected behaviour if 'source' ==
null and/or 'command' == null.
The same story with
ActionEvent(java.lang.Object,int,java.lang.String,int) and
ActionEvent(java.lang.Object,int,java.lang.String,long,int).

------------
Currently javadoc says:
public ActionEvent(Object source,
                   int id,
                   String command)

Constructs an ActionEvent object.

Note that passing in an invalid id results in unspecified behavior.

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

======================================================================
###@###.### 2004-09-15

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b21
17-09-2004

PUBLIC COMMENTS .
17-09-2004

EVALUATION None of the Event constructors specify throwing this IAE. This behavior is from the superclass's constructor EventObject - which the subclasses call. I added doc to all 31 Event constructors about the IAE. Reviewed by Eric. Approved by CCC. Fixed for tiger. ###@###.### 2003-09-07 =================================================================== According to CCC I've found following disperancies: HierarchyEvent (3 constructors) in fact 2 constructors InputEvent (1 constructor) in fact there are no constructors InvocationEvent (2 constructors) in fact 3 constructors KeyEvent (2 constructors) in fact 3 constructors Classes InputMethodEvent, KeyEvent and MouseEvent have javadoc description with recurring throws IAE declaration. Class KeyEvent has constructors without javadoc description at all. Concerning all constructors there are following text: This method throws as IllegalArgumentException..... In fact a constructor is not a method. So the sentence above should be fixed to This constructor throws... ###@###.### 2004-09-15d
15-09-2004