JDK-6991528 : Support making Throwable.suppressedExceptions immutable
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-13
  • Updated: 2018-10-17
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b120Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
In discussions on coin-dev [1] and elsewhere, the need to support immutable Throwable objects in the JVM became evident.  Such Throwables can be reused and do not require a fresh allocation (and stack trace creation) for each throw.

Supporting this feature requires a number of changes to the suppressed exception feature added to support try-with-resources.

In addition, renaming "getSuppressedExceptions" and "addSuppressedException" to "getSuppressed" and "addSuppressed" has been suggested [2].

[1] http://mail.openjdk.java.net/pipermail/coin-dev/2010-August/002830.html
[2] http://mail.openjdk.java.net/pipermail/coin-dev/2010-September/002908.html

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/langtools/rev/4328728e0409
04-12-2010

EVALUATION http://hg.openjdk.java.net/jdk7/build/jdk/rev/e1a1a2f5d7e1
04-12-2010

PUBLIC COMMENTS See http://hg.openjdk.java.net/jdk7/tl/langtools/rev/4328728e0409 http://hg.openjdk.java.net/jdk7/tl/jdk/rev/e1a1a2f5d7e1
23-11-2010

EVALUATION A fine idea.
13-10-2010