United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8012044 Give more information about self-suppression from Throwable.addSuppressed
JDK-8012044 : Give more information about self-suppression from Throwable.addSuppressed

Details
Type:
Enhancement
Submit Date:
2013-04-11
Status:
Closed
Updated Date:
2013-12-17
Project Name:
JDK
Resolved Date:
2013-04-25
Component:
core-libs
OS:
generic
Sub-Component:
java.lang
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7,8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
The specification of Throwable.addSuppressed forbids an exception from suppressing itself. However, if this situation does occurs, especially in auto-generated code, it can be difficult to diagnose what is going in since the original (misbehaving) exception is not propagated.
                                    

Comments
Self-suppression was forbidden as part of JDK-6963622.
                                     
2013-04-11
See core-libs-dev thread:
"Throwable.addSuppressed error conditions -- use the exception as the cause?"
http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-April/015796.html
                                     
2013-04-11
Review thread:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-April/015947.html
                                     
2013-04-12
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4da1d43f5843
User:  darcy
Date:  2013-04-25 16:37:57 +0000

                                     
2013-04-25
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/4da1d43f5843
User:  lana
Date:  2013-05-07 18:40:01 +0000

                                     
2013-05-07



Hardware and Software, Engineered to Work Together