cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r673177 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DriverDataSource.java
Date Tue, 01 Jul 2008 19:02:34 GMT
Author: aadamchik
Date: Tue Jul  1 12:02:34 2008
New Revision: 673177

URL: http://svn.apache.org/viewvc?rev=673177&view=rev
Log:
more conservative class loading, not relying on the thread class loader being present

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DriverDataSource.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DriverDataSource.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DriverDataSource.java?rev=673177&r1=673176&r2=673177&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DriverDataSource.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DriverDataSource.java
Tue Jul  1 12:02:34 2008
@@ -54,9 +54,7 @@
 
         Class<?> driverClass;
         try {
-            driverClass = Class.forName(driverClassName, true, Thread
-                    .currentThread()
-                    .getContextClassLoader());
+            driverClass = Util.getJavaClass(driverClassName);
         }
         catch (Exception ex) {
             throw new SQLException("Can not load JDBC driver named '"



Mime
View raw message