RFR: Proposed jimage refresh for JDK9

Alan Bateman Alan.Bateman at oracle.com
Tue May 19 16:50:37 UTC 2015



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


More information about the jigsaw-dev mailing list