JDK-4935655 : EventObject's constructor throws IllegalArgumentException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-10-10
  • Updated: 2003-10-10
  • Resolved: 2003-10-10
Related Reports
Duplicate :  
Relates :  
Description
The constructor of java.util.EventObject throws an IllegalArgumentException if null is passed for the source parameter. However, this exception is not mentioned in the specification.
It is also debatable if this should rather be a NullPointerException or why it is necessary to reject null at all.