Author: ron.sigal(a)jboss.com
Date: 2008-11-12 23:16:21 -0500 (Wed, 12 Nov 2008)
New Revision: 4658
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java
Log:
JBREM-1041: Fixed two problems in loadClassBytes().
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java 2008-11-12
05:48:32 UTC (rev 4657)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/marshal/MarshallerLoaderHandler.java 2008-11-13
04:16:21 UTC (rev 4658)
@@ -185,7 +185,7 @@
{
Object o = server.getAttribute(name, "Instance");
LoaderRepository repository = (LoaderRepository) o;
- Class c = repository.getCachedClass(className);
+ Class c = repository.loadClass(className);
if (c == null)
{
continue;
@@ -193,6 +193,7 @@
log.debug("found class in repository " + name);
RepositoryClassLoader cl = (RepositoryClassLoader) c.getClassLoader();
classDefinition = loadByteCode(cl, className);
+ break;
}
catch (Exception e)
{