Rick Hillegas created DERBY-7032: ------------------------------------ Summary: Developer's Guide recommends use of a deprecated method Key: DERBY-7032 URL: https://issues.apache.org/jira/browse/DERBY-7032 Project: Derby Issue Type: Bug Components: Documentation, JDBC Affects Versions: 10.15.1.1, 10.16.0.0 Reporter: Rick Hillegas
The "Shutting down the system" topic in the Developer's Guide (and probably other places in the user documentation) recommends the following pattern for re-loading the engine driver after it was unloaded by a graceful system shutdown: {noformat} Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance(); {noformat} However, if you use Java 9 or later to compile an application which follows that pattern, then you will get a deprecation warning. That is because Java 9 deprecated Class.newInstance(). Some future rev of the JDK may remove the method altogether. This issue was discovered while investigating DERBY-7031. -- This message was sent by Atlassian JIRA (v7.6.3#76005)