Author: ataylor
Date: 2011-08-04 04:58:14 -0400 (Thu, 04 Aug 2011)
New Revision: 11110
Modified:
branches/Branch_2_2_AS7/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java
Log:
https://issues.jboss.org/browse/HORNETQ-747
Modified:
branches/Branch_2_2_AS7/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java
===================================================================
---
branches/Branch_2_2_AS7/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java 2011-08-04
02:42:28 UTC (rev 11109)
+++
branches/Branch_2_2_AS7/src/main/org/hornetq/utils/ObjectInputStreamWithClassLoader.java 2011-08-04
08:58:14 UTC (rev 11110)
@@ -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)
{