8014967: EBehavior of DriverManager.registerDriver(dr) is unspecified if driver is null
authorlancea
Fri, 13 Sep 2013 19:10:31 -0400
changeset 19858 7c37f6ac403b
parent 19857 d3a868255edb
child 19859 ac48498acd3a
8014967: EBehavior of DriverManager.registerDriver(dr) is unspecified if driver is null Reviewed-by: alanb
jdk/src/share/classes/java/sql/DriverManager.java
--- a/jdk/src/share/classes/java/sql/DriverManager.java	Fri Sep 13 11:26:44 2013 -0700
+++ b/jdk/src/share/classes/java/sql/DriverManager.java	Fri Sep 13 19:10:31 2013 -0400
@@ -326,6 +326,7 @@
      * @param driver the new JDBC Driver that is to be registered with the
      *               {@code DriverManager}
      * @exception SQLException if a database access error occurs
+     * @exception NullPointerException if {@code driver} is null
      */
     public static synchronized void registerDriver(java.sql.Driver driver)
         throws SQLException {
@@ -345,6 +346,7 @@
      * @param da     the {@code DriverAction} implementation to be used when
      *               {@code DriverManager#deregisterDriver} is called
      * @exception SQLException if a database access error occurs
+     * @exception NullPointerException if {@code driver} is null
      */
     public static synchronized void registerDriver(java.sql.Driver driver,
             DriverAction da)