-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b120
-
generic
-
generic
-
Not verified
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
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
- relates to
-
JDK-6963622 Project Coin: Refinements to suppressed exceptions
- Resolved
-
JDK-6973831 NPE when printing stack trace of OOME
- Closed
-
JDK-6911258 Project Coin: Add essential API support for Automatic Resource Management (ARM) blocks
- Closed
-
JDK-6978918 Should clear stackTrace before throwing the preallocated default OutOfMemoryError objects
- Closed
-
JDK-6998871 Support making the Throwable.stackTrace field immutable
- Closed