JDK-4757015 : RFE: add cause constructor to all sdk exceptions
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2002-10-02
  • Updated: 2003-06-19
  • Resolved: 2003-06-19
Related Reports
Duplicate :  
Description

Name: rl43681			Date: 10/02/2002


FULL PRODUCT VERSION :
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

FULL OPERATING SYSTEM VERSION :
Linux 2.4.18-4GB
Windows 2000


A DESCRIPTION OF THE PROBLEM :
In java version 1.4, the Exception/RuntimeException class
introduce the constructor with cause parameter.
The Exception inside the JDK inerit from
Exception/RuntimeException ( i.e. IllegalStateException)
ignore this constructor. It will be nice if these
Exception's overwrite the new constructer so you be able to
use it.


REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 164285) 
======================================================================