> On May 19, 2015, at 1:50 PM, Alan Bateman <[email protected]> wrote: > > > > On 19/05/2015 17:43, Jim Laskey (Oracle) wrote: >> : >>> jdk.internal.jimage.ExternalFilesWriter >>> >>> 93 private static String nativeDir(String filename) { >>> 94 if (System.getProperty("os.name").startsWith("Windows")) { >>> 95 if (filename.endsWith(".dll") || filename.endsWith(".diz") >>> 96 || filename.endsWith(".pdb") || >>> filename.endsWith(".map")) { >>> 97 return "bin"; >>> 98 } else { >>> 99 return "lib"; >>> 100 } >>> 101 } else { >>> 102 return "lib"; >>> 103 } >>> 104 } >>> >>> Does that need to be performed in a doPriv block? >>> >>> >> System.getProperty("os.name”) does not appear to be privileged. >> permission java.util.PropertyPermission "os.name", "read”; in grant { } >> section > I think this is the write code so it's only used in the build or jimage > recreate, not used at run-time, right? > > -Alan
Correct
