> On Apr 14, 2017, at 8:47 AM, Phil Race <philip.r...@oracle.com> wrote: > > Bug: http://cr.openjdk.java.net/~prr/8178708/ > Webrev : http://cr.openjdk.java.net/~prr/8178708/ > > As of the b163 module system refresh, accessing resources in a modular image > requires a new RuntimePermission. > > Since we were lacking that permission getResourceAsStream failed when trying > to open an ICC Color Profile and this bubbled up into a NPE. > > Fixed by adding the new permission.
Looks okay. An alternative is just use doPrivileged with no limited permissions. This is getting a resource in java.desktop module that will come from either jimage or exploded image. In this case, no big difference between limited doPrivileged and doPrivileged in this call. Mandy