Author: ron.sigal(a)jboss.com
Date: 2010-02-15 11:55:07 -0500 (Mon, 15 Feb 2010)
New Revision: 5682
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java
Log:
JBREM-1184: Tests for returned null class.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java 2010-02-15
16:17:23 UTC (rev 5681)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/loading/ClassByteClassLoader.java 2010-02-15
16:55:07 UTC (rev 5682)
@@ -397,9 +397,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
{
Show replies by date