I have Java 7 installed, but I am setting the JDK to my Java 6 projects. Unfortunately, it turned out that this is not the same as compiling with Java 6.
For example, the javax.imageio.stream.ImageInputStream
extends interface Closablein Java 7, which is not in Java 6. Using ImageInputStream, where it is expected Closable, compiles to my settings (Java 7, corresponding to Java 6), but gives a compilation error when using Java 6, Should this be so?
source
share