JDK-4469029 : Propogate Throwable(Throwable cause) constructor to subclases
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-06-12
  • Updated: 2003-06-17
  • Resolved: 2003-06-17
Related Reports
Duplicate :  
Description

Name: bsC130419			Date: 06/12/2001


java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)


Throwable now has a Throwable(Throwable cause) and a Throwable(String
message,Throwable cause) constructor, which is wonderful. Exception,
RuntimeException and Error let me access that constructor, but few other
subclasses do. Please propogate the Throwable cause argument wherever you can
throughout the standard libraries. I'd like to use it immediately in
IOException, SQLException, and the EJB family of exceptions. Looks like it
already made it into RemoteException, which is great.

You'll probably have to pass the buck to other groups to get them to add this
api to their exceptions. However, they want to do it more than you think.
(Review ID: 126335) 

Also requested:  ConcurrentModificationException

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

Comments
WORK AROUND Name: bsC130419 Date: 06/12/2001 Guess I can't put my HasNestedThrowable interface out to pasture just yet. *sigh* ======================================================================
11-06-2004

EVALUATION We tried to add Throwable constructors the bulk of the appropriate exception classes. We did miss a few, and we'll do them as soon as time permits. joshua.bloch@Eng 2001-07-18
18-07-2001