Where does the close() exception go? Reading suppressed exceptions in Java try-with-resources
When both the try block and close() throw, which exception propagates and which ends up in getSuppressed()? Close order and multiple failures, per JLS 14.20.3.
javaexceptionstry-with-resourcesjls