[
https://jira.jboss.org/jira/browse/JBREM-1184?page=com.atlassian.jira.plu...
]
Ron Sigal commented on JBREM-1184:
----------------------------------
ClassByteClassLoader.loadFromNetwork() tests if the returned ClassBytes object holds a
null class.
Testing: It's difficult to test for the NPE since it is logged but not rethrown: a
ClassNotFoundException is thrown if the class is never found. However, the test class
org.jboss.test.remoting.classloader.RemoteClassloaderTestCase has been committed to
document the problem. The RemoteClassloaderTestCase.testClassNotFound() passes even in
the event of a NPE, but the NPE should not be seen in the log file.
Waiting for results in hudson.;
Fix NPE in ClassByteClassLoader.addClass()
------------------------------------------
Key: JBREM-1184
URL:
https://jira.jboss.org/jira/browse/JBREM-1184
Project: JBoss Remoting
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.2.3.SP1, 2.5.2.SP2 (Flounder)
Reporter: Ron Sigal
Assignee: Ron Sigal
Fix For: 2.2.3.SP2, 2.5.2.SP3 (Flounder)
When org.jboss.remoting.marshal.MarshallerLoaderHandler gets a request for a class, it
returns an instance of org.jboss.remoting.loading.ClassBytes. If MarshallerLoaderHandler
isn't able to find the desired class, then the returned ClassBytes object has null
value for the class byte array. However, org.jboss.remoting.loading.ClassByteClassLoader
doesn't check for the possibility of a null byte array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira