[
http://jira.jboss.com/jira/browse/JBCACHE-1302?page=all ]
Brian Stansberry updated JBCACHE-1302:
--------------------------------------
Summary: CacheMarshaller200 does not properly restore thread context classloader
(was: CacheMarshaller200 does not properly restor thread context classloader)
CacheMarshaller200 does not properly restore thread context
classloader
-----------------------------------------------------------------------
Key: JBCACHE-1302
URL:
http://jira.jboss.com/jira/browse/JBCACHE-1302
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.1.0.CR4
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Fix For: 2.1.0.GA
The unmarshallObject method isn't correctly restoring the original TCCL to the
thread:
finally
{
if (overrideContextClassloaderOnThread || old == null)
currentThread.setContextClassLoader(null);
}
Setter call should be
currentThread.setContextClassLoader(old);
i.e. "old" not "null"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira