db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1746132 - in /db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc: ExceptionFactory.java build.xml
Date Mon, 30 May 2016 13:36:03 GMT
Author: rhillegas
Date: Mon May 30 13:36:03 2016
New Revision: 1746132

URL: http://svn.apache.org/viewvc?rev=1746132&view=rev
Log:
DERBY-6856: Clean up the last deprecation warning introduced by build 118 of JDK 9: commit
derby-6856-07-aa-oneMoreNewInstance.diff.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/ExceptionFactory.java
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/build.xml

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/ExceptionFactory.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/ExceptionFactory.java?rev=1746132&r1=1746131&r2=1746132&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/ExceptionFactory.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/ExceptionFactory.java Mon May
30 13:36:03 2016
@@ -41,7 +41,8 @@ public abstract class ExceptionFactory {
         String impl = "org.apache.derby.impl.jdbc.SQLExceptionFactory";
         ExceptionFactory factory = null;
         try {
-            factory = (ExceptionFactory) Class.forName(impl).newInstance();
+            Class<?> clazz = Class.forName(impl);
+            factory = (ExceptionFactory) clazz.getConstructor().newInstance();
         } catch (Exception e) {
             throw new ExceptionInInitializerError(e);
         }

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/build.xml?rev=1746132&r1=1746131&r2=1746132&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/build.xml (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/build.xml Mon May 30 13:36:03
2016
@@ -46,7 +46,6 @@
       nowarn="on"
       debug="${debug}"
       depend="${depend}"
-      deprecation="${deprecation}"
       optimize="${optimize}"
       proceed="${proceed}"
       verbose="${verbose}"
@@ -66,7 +65,6 @@
           nowarn="on"
           debug="${debug}"
           depend="${depend}"
-          deprecation="${deprecation}"
           optimize="${optimize}"
           proceed="${proceed}"
           verbose="${verbose}"



Mime
View raw message