A subtle AutoCloseable contract change between Java 7 and Java 8
Working between Java 7 and Java 8? Then you might be aware that the AutoCloseable type goes through a little change for the newest version of Java. Lukas Eder explains how the contract for AutoCloseable is now similar to the Iterable contract.