JDK-4074663 : ExceptionInInitializer causes obscure stack traces.
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.1.2
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-08-27
  • Updated: 1998-02-06
  • Resolved: 1998-02-06
Related Reports
Duplicate :  
Description

Name: rlT66838			Date: 08/27/97


Quite often is is necessary to convert one
type of exception into an other.  For example
if an exception is thrown in an initializer,
the exception is converted into
java.lang.ExceptionInInitializerError.  When
this happens the stack trace of the initial
exception is lost.  Could a constructor be
added to Exception, such that it would take
another exception as a parameter, and be able
to display the other exceptions StackTrace.
======================================================================

Comments
WORK AROUND Name: rlT66838 Date: 08/27/97 ======================================================================
11-06-2004

EVALUATION Sounds like a legit complaint. But I adding a constructor to exception might be the right way to solve this problem. anand.palaniswamy@Eng 1997-11-05
05-11-1997