commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r820611 - /commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java
Date Thu, 01 Oct 2009 11:19:24 GMT
Author: niallp
Date: Thu Oct  1 11:19:24 2009
New Revision: 820611

URL: http://svn.apache.org/viewvc?rev=820611&view=rev
Log:
BEANUTILS-327 JDBCDynaClass throws class not found exception for arrays (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516909)
- thanks to Sascha Riemann for the patch

Modified:
    commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java

Modified: commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java?rev=820611&r1=820610&r2=820611&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java
(original)
+++ commons/proper/beanutils/trunk/src/java/org/apache/commons/beanutils/JDBCDynaClass.java
Thu Oct  1 11:19:24 2009
@@ -159,7 +159,8 @@
             if (cl == null) {
                     cl = this.getClass().getClassLoader();
             }
-            return (cl.loadClass(className));
+            // use Class.forName() - see BEANUTILS-327
+            return Class.forName(className, false, cl);
         } catch (Exception e) {
             throw new SQLException(
                     "Cannot load column class '" + className + "': " + e);



Mime
View raw message