[hornetq-commits] JBoss hornetq SVN: r11478 - branches/Branch_2_2_EAP/src/main/org/hornetq/utils.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Oct 6 15:15:23 EDT 2011


Author: clebert.suconic at jboss.com
Date: 2011-10-06 15:15:23 -0400 (Thu, 06 Oct 2011)
New Revision: 11478

Modified:
   branches/Branch_2_2_EAP/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java
Log:
back port HORNETQ-747 to work around eventual JDK bugs

Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java	2011-10-06 09:09:31 UTC (rev 11477)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java	2011-10-06 19:15:23 UTC (rev 11478)
@@ -53,7 +53,9 @@
       ClassLoader loader = Thread.currentThread().getContextClassLoader();
       try
       {
-         Class clazz = loader.loadClass(name);
+         // HORNETQ-747 https://issues.jboss.org/browse/HORNETQ-747
+         // Use Class.forName instead of ClassLoader.loadClass to avoid issues with loading arrays     
+         Class clazz = Class.forName(name, false, loader);
          // sanity check only.. if a classLoader can't find a clazz, it will throw an exception
          if (clazz == null)
          {



More information about the hornetq-commits mailing list