RFR 8072932: Test fails with java.security.AccessControlException: access denied ("java.security.SecurityPermission" "getDomainCombiner")

David Holmes david.holmes at oracle.com
Fri Feb 13 02:39:30 UTC 2015


On 12/02/2015 2:10 AM, Jaroslav Bachorik wrote:
> Please, review the following simple change.
>
> Issue : https://bugs.openjdk.java.net/browse/JDK-8072932
> Webrev: http://cr.openjdk.java.net/~jbachorik/8072932/webrev.00
>
> This patch is about replacing the
> j.s.AccessControlContext.getDomainCombiner() with the package-private
> version j.s.AccessControlContext.getCombiner() to prevent the
> unnecessary privilege check done by the public getDomainCombiner() method.

Just wondering: would the original call succeed if placed in a doPrivileged?

David

> Thanks,
>
> -JB-



More information about the security-dev mailing list