Use try/finally in ClassPool::toClass2
--------------------------------------
Key: JASSIST-115
URL:
https://issues.jboss.org/browse/JASSIST-115
Project: Javassist
Issue Type: Bug
Affects Versions: 3.12.0.GA
Reporter: Ales Justin
Assignee: Ales Justin
Fix For: 3.13.0.GA
Reset of method accessible should be done in finally.
method.setAccessible(true);
Class clazz = (Class)method.invoke(loader, args);
method.setAccessible(false); // <-- HERE
return clazz;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: