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

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


     [ https://jira.jboss.org/jira/browse/JASSIST-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin resolved JASSIST-115.
---------------------------------

    Resolution: Done


> 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