Clone
Nicolas Filotto
committed
on 03 Nov 14
KER-295: Test failures and errors with Oracle java >= 1.7.0_25
Problem analysis:
* Oracle Java 1.7.0_25 has a security improvement of java.s… Show more
KER-295: Test failures and errors with Oracle java >= 1.7.0_25

Problem analysis:

* Oracle Java 1.7.0_25 has a security improvement of java.security.AccessController.doPrivileged(PrivilegedAction, AccessControlContext) and java.security.AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext).

 When a security manager is installed, the AccessControlContext is not created by system code and the caller's ProtectionDomain has not been granted the security permission (java.security.SecurityPermission) createAccessControlContext, then the action is performed with no permissions.

 These methods are used in unit tests and it causes therefore test failures and errors.

Fix description:

* Grant the security permission *createAccessControlContext* for unit tests.

Show less

UXP-296 + 2 more