When I compile the Spring JDBC source on OS X with JDK 1.7.0, I get this warning:
warning: CachedRowSetImpl is internal proprietary API and may be removed in
Try the javac option
-Xlint:none
If you compile from an IDE, it should have an option to disable warnings.
This will disable ALL warnings that are not a part of Java Language Specification. So for example "unchecked" warning will not be blocked.