United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4743026 java.awt.event.ActionEvent: null reaction
JDK-4743026 : java.awt.event.ActionEvent: null reaction

Details
Type:
Bug
Submit Date:
2002-09-06
Status:
Resolved
Updated Date:
2003-09-23
Project Name:
JDK
Resolved Date:
2003-09-23
Component:
docs
OS:
solaris_7,generic
Sub-Component:
guides
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0,5.0
Fixed Versions:
5.0 (tiger)

Related Reports

Sub Tasks

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
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
                                     
2004-09-15
PUBLIC COMMENTS

.
                                     
2004-09-17
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b21


                                     
2004-09-17



Hardware and Software, Engineered to Work Together