[hibernate-issues] [Hibernate-JIRA] Commented: (HV-331) Investigate use of field/method.setAccessible( true )

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Jun 14 09:13:58 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37445#action_37445 ] 

Hardy Ferentschik commented on HV-331:
--------------------------------------

field/method.setAccessible( true ) is called independent of the method/field is public, protected or private. However, the setAccessible call is made within a {{PrivilegedAction}}. AFASK this was a requirement for systems where BV is used within a environment with enabled security manager.

> Investigate use of  field/method.setAccessible( true )
> ------------------------------------------------------
>
>                 Key: HV-331
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-331
>             Project: Hibernate Validator
>          Issue Type: Task
>          Components: engine
>    Affects Versions: 4.1.0.Beta2
>            Reporter: Hardy Ferentschik
>            Assignee: Hardy Ferentschik
>             Fix For: 4.1.0.CR1
>
>
> Given some performance discussion on hibernate-dev it might be good to call {{setAccessible}} even if the method is public.

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