Check for new methods on JDBC interfaces

In Java SE 7, new methods were added to support JDBC 4.1 on the following Java interfaces:

This rule detects and flags Java classes that implement these interfaces and known subinterfaces if the classes do not have the new methods.

Known subinterfaces include the following interfaces:

Any class that implements these Java interfaces cannot compile until the required methods are added to the class.

In the following example, the MyClass class will be flagged:
public class MyClass implements java.sql.Driver {
// more code
}

To fix the problem, compile your application in Eclipse using Java 7. Use the automated fix to add the missing methods and fill in the missing implementation. Copy the custom configuration to your application build file to enable the fix automation.

For more information about this change, see the following resources: