JDK-8012044 : Give more information about self-suppression from Throwable.addSuppressed
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7,8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-04-11
  • Updated: 2015-03-07
  • Resolved: 2013-04-25
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 JDK 8
7u40Fixed 8 b89Fixed
Related Reports
Relates :  
Relates :  
Relates :  
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
Review thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-April/015947.html
12-04-2013

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
11-04-2013

Self-suppression was forbidden as part of JDK-6963622.
11-04-2013