Relates :
|
|
Relates :
|
|
Relates :
|
The JSR 334 expert group has decided that it is probably a programming error is an AutoCloseable.close method throws InterruptedException since InterruptedException interacts with a thread's interrupted status. A suppressed InterruptedException is likely to lead to misbehavior at runtime. To catch such conceptual mistakes, it would be helpful is javac warned about structures like "public void close throws InterruptedException {...}"
|