[hibernate-dev] PersistenceUtilHelper causing AccessControlException under SecurityManager

Gunnar Morling gunnar.morling at googlemail.com
Sun Jan 9 07:16:25 EST 2011


Hello,

while running some tests of HV with a Java security manager enabled I
stumbled upon a java.security.AccessControlException caused
by org.hibernate.ejb.util.PersistenceUtilHelper#setAccessibility() due to a
missing ReflectPermission.

I think the call to setAccessible() should be executed using a
PrivilegedAction similar to the implementation in
org.hibernate.validator.util.ReflectionHelper#setAccessibility().

Should I add a JIRA ticket for this?

Gunnar



More information about the hibernate-dev mailing list