archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1449030 - /archiva/redback/redback-components/trunk/spring-jdo2/src/main/java/org/apache/archiva/redback/components/jdo/DefaultJdoFactory.java
Date Fri, 22 Feb 2013 13:33:36 GMT
Author: olamy
Date: Fri Feb 22 13:33:35 2013
New Revision: 1449030

URL: http://svn.apache.org/r1449030
Log:
avoid using class.forName

Modified:
    archiva/redback/redback-components/trunk/spring-jdo2/src/main/java/org/apache/archiva/redback/components/jdo/DefaultJdoFactory.java

Modified: archiva/redback/redback-components/trunk/spring-jdo2/src/main/java/org/apache/archiva/redback/components/jdo/DefaultJdoFactory.java
URL: http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-jdo2/src/main/java/org/apache/archiva/redback/components/jdo/DefaultJdoFactory.java?rev=1449030&r1=1449029&r2=1449030&view=diff
==============================================================================
--- archiva/redback/redback-components/trunk/spring-jdo2/src/main/java/org/apache/archiva/redback/components/jdo/DefaultJdoFactory.java
(original)
+++ archiva/redback/redback-components/trunk/spring-jdo2/src/main/java/org/apache/archiva/redback/components/jdo/DefaultJdoFactory.java
Fri Feb 22 13:33:35 2013
@@ -77,7 +77,7 @@ public class DefaultJdoFactory
             }
 
             //TODO: Class.forName is evil
-            Class.forName( driverClass );
+            Thread.currentThread().getContextClassLoader().loadClass( driverClass );
         }
         catch ( ClassNotFoundException e )
         {



Mime
View raw message