[OpenJDK 2D-Dev] RFR: 8178708: Regtest failure: java/awt/Color/LoadProfileWithSM.java
mandy.chung at oracle.com
Fri Apr 14 16:42:03 UTC 2017
> On Apr 14, 2017, at 8:47 AM, Phil Race <philip.race at 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.
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.
More information about the 2d-dev