Author: ron.sigal(a)jboss.com
Date: 2010-02-15 12:06:30 -0500 (Mon, 15 Feb 2010)
New Revision: 5683
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java
Log:
JBREM-1184: Tests for returned null class.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java 2010-02-15
16:55:07 UTC (rev 5682)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java 2010-02-15
17:06:30 UTC (rev 5683)
@@ -405,9 +405,14 @@
if(obj instanceof ClassBytes)
{
ClassBytes classBytes = (ClassBytes) obj;
- String name = classBytes.getClassName();
-
- loadedClass = addClass(classBytes);
+ if (classBytes.getClassBytes() != null)
+ {
+ loadedClass = addClass(classBytes);
+ }
+ else
+ {
+ log.debug("Can not load remote class bytes: server returned
null class");
+ }
}
else
{