Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
10.1.1.0
-
None
Description
Using Class.forName("<driver name>").newInstance() is the recommended way to load and instantiate the JDBC driver, but the documentation does not contain the .newInstance() part.
Pointers:
http://db.apache.org/derby/docs/10.1/devguide/cdevdvlp40653.html
http://db.apache.org/derby/docs/10.1/ref/rrefjdbc32052.html
The EmbeddedDriver javadoc mentions it:
"The JDBC specification recommends the Class.ForName method without the .newInstance() method call, but adding the newInstance() guarantees that Derby will be booted on any Java Virtual Machine."
Attachments
Attachments
Issue Links
- is depended upon by
-
DERBY-2958 need to mention ClientDriver In Derby reference manual's java.sql.Driver interface section
- Closed