Hello, sorry for coming up with that thread again, but I see that JDK-8042377 is hanging around with no action, and there was not yet any discussion I have seen about why it would be robust to call this IAE. I know there was quite some work done in 2013 to make this self-supression IAE a bit less painfull (8012044: Give more information about self-suppression from Throwable.addSuppressed) but it was never really discussed why it is needed at all? Gruss Bernd Am Mon, 05 May 2014 15:47:40 +0100 schrieb Alan Bateman <Alan.Bateman@oracle.com>:
On 05/05/2014 15:40, Peter Levart wrote:
Hi Alan,
There has been a discussion about a year ago on this list:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-April/015947.html
Yes, I remember this and also reviewed it for Joe. My point about it not coming up before was in the context of BufferedWriter/etc where close needs to flush. In that case then I think it would be more typically to throw a new IOException each time.
I'll leave to Joe to comment on suggestion to drop self suppression.
-Alan