On Tue, 10 May 2022 23:17:54 GMT, Mat Carter <d...@openjdk.java.net> wrote:

>> test/jdk/sun/security/mscapi/AllTypes.java line 60:
>> 
>>> 58:             return true;
>>> 59:         } catch (IOException ioe) {
>>> 60:             if 
>>> (ioe.getMessage().trim().endsWith("java.security.KeyStoreException: Access 
>>> is denied.")) {
>> 
>> Could the message be different if the system language is not English?
>
> I checked the API and its not guaranteed to be English.  I'm investigating a 
> better method for detecting admin rights

Updated admin privilege test to more reliable method that does not rely on 
string parsing and thus not susceptible to locale issues

-------------

PR: https://git.openjdk.java.net/jdk/pull/8211

Reply via email to