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

Shigeru Chiba (JIRA) jira-events at lists.jboss.org
Mon Dec 24 21:36:08 EST 2012


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

Shigeru Chiba closed JASSIST-115.
---------------------------------


    
> 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: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list