I see quite a few changed interfaces in JDK7, e.g., the addition of ResultSet.getObject(String, Class<T>). I was greatly surprised by this incompatible change, especially because I’ve never seen it discussed.
I suppose the incompatibility doesn’t matter when I use a JAR file instead of trying to compile the project myself, right?
What is the proper way to support both JDK6 and JDK7? Does simply implementing the new methods and never using them suffice?
It seems
and
were introduced in 1.7. (At least it says “Since 1.7”) in the documentation. I agree, it’s kind of a nasty change.
There are more changes in the
java.sqlinterfaces.Connectionfor instance, got 5 new methods in 1.7. Hopefully the breaking changes are worthwhile.Yes, but avoid using the
@Overridesannotation on methods not present in the earlier version of the interface.