[jboss-jira] [JBoss JIRA] Created: (JASSIST-115) Use try/finally in ClassPool::toClass2

Ales Justin (JIRA) jira-events at lists.jboss.org
Wed Apr 21 10:19:10 EDT 2010


Use try/finally in ClassPool::toClass2
--------------------------------------

                 Key: JASSIST-115
                 URL: https://jira.jboss.org/jira/browse/JASSIST-115
             Project: Javassist
          Issue Type: Bug
    Affects Versions: 3.12.0.GA
            Reporter: Ales Justin
            Assignee: Ales Justin


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 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

        


More information about the jboss-jira mailing list