-
Enhancement
-
Resolution: Fixed
-
P3
-
7
-
b138
-
generic
-
generic
-
Verified
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 {...}"
To catch such conceptual mistakes, it would be helpful is javac warned about structures like "public void close throws InterruptedException {...}"
- relates to
-
JDK-8155591 Misleading warning when not overriding close method in interface extending AutoCloseable
-
- Open
-
-
JDK-7027362 Project Coin: warn of throwing InterruptedException in AutoCloseable.close javadoc
-
- Closed
-
-
JDK-7148025 javac should not warn about InterruptedException on the declaration of AutoCloseable itself
-
- Closed
-