[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5289) Remove unnecessary security checks in property accessors

Gail Badner (JIRA) noreply at atlassian.com
Tue Jun 8 12:02:10 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner updated HHH-5289:
-----------------------------

    Issue Type: Improvement  (was: Task)

> Remove unnecessary security checks in property accessors
> --------------------------------------------------------
>
>                 Key: HHH-5289
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5289
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>         Environment: 3.3.1 GA
>            Reporter: Kirill Klenski
>            Priority: Minor
>
> Setting Method.setAccessible() and Field.setAccessible() to true helps to avoid security checks. 
> Currently it is executed only for non-public class members. 
> Code example from DirectPropertyAccessor:
>   if ( !ReflectHelper.isPublic(theClass, method) ) {
>      method.setAccessible(true);
>   }
> Using this call for public members as well will increase the reflection call performance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list