[
https://jira.jboss.org/jira/browse/JASSIST-75?page=com.atlassian.jira.plu...
]
David Lloyd commented on JASSIST-75:
------------------------------------
Another idea (less compatible but more correct) would be to just write the Class objects
rather than the names; then the serialization mechanism can resolve the classes in
whatever the most appropriate way is (which is more flexible as the serialization
mechanism has the opportunity to attach info about e.g. the classloader to the class).
SerializedProxy should use TCCL in readResolve
----------------------------------------------
Key: JASSIST-75
URL:
https://jira.jboss.org/jira/browse/JASSIST-75
Project: Javassist
Issue Type: Bug
Reporter: Ales Justin
Assignee: Shigeru Chiba
Fix For: 3.10.0.GA
Attachments: TCCL_usage_.patch
When loading classes in SerializedProxy::readResolve
we should use TCCL instaed of caller CL.
e.g.
ClassLoader cl = Thread.currentThread().getContextClassLoader();
cl.loadClass(name);
--
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