提交 eb94c220 编写于 作者: L lancea

8014967: EBehavior of DriverManager.registerDriver(dr) is unspecified if driver is null

Reviewed-by: alanb
上级 06feee38
...@@ -326,6 +326,7 @@ public class DriverManager { ...@@ -326,6 +326,7 @@ public class DriverManager {
* @param driver the new JDBC Driver that is to be registered with the * @param driver the new JDBC Driver that is to be registered with the
* {@code DriverManager} * {@code DriverManager}
* @exception SQLException if a database access error occurs * @exception SQLException if a database access error occurs
* @exception NullPointerException if {@code driver} is null
*/ */
public static synchronized void registerDriver(java.sql.Driver driver) public static synchronized void registerDriver(java.sql.Driver driver)
throws SQLException { throws SQLException {
...@@ -345,6 +346,7 @@ public class DriverManager { ...@@ -345,6 +346,7 @@ public class DriverManager {
* @param da the {@code DriverAction} implementation to be used when * @param da the {@code DriverAction} implementation to be used when
* {@code DriverManager#deregisterDriver} is called * {@code DriverManager#deregisterDriver} is called
* @exception SQLException if a database access error occurs * @exception SQLException if a database access error occurs
* @exception NullPointerException if {@code driver} is null
*/ */
public static synchronized void registerDriver(java.sql.Driver driver, public static synchronized void registerDriver(java.sql.Driver driver,
DriverAction da) DriverAction da)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册