Review Request: JDK-8179645: java.util.jar.Packer.newPacker and newUnpacker fails when running with security manager

Mandy Chung mandy.chung at oracle.com
Thu May 4 21:52:29 UTC 2017


> On May 4, 2017, at 2:13 PM, Alan Bateman <alan.bateman at oracle.com> wrote:
> 
> 
> On 04/05/2017 21:35, Mandy Chung wrote:
>> java.util.jar.Packer.newPacker and newUnpacker fails when running
>> with security manager.  It is an existing bug but we uncovers this
>> only now because a new RuntimePermission “accessSystemModules” is
>> required to access resources from the system image.
>> 
>> Webrev:
>> http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8179645/webrev.00/index.html
>> 
>> 
> Another option for the properties is GetPropertyAction.privilegedGetProperty but what you have is okay too.

I intentionally avoid using it.

Mandy


More information about the core-libs-dev mailing list