Hi,
Question as title :
I need to run a legacy Java desktop application under a Java Security Policy file. The application calls the following :
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
When this line executes I get an exception as follows :
"Exception in thread "main" java.security.AccessControlException: access denied (
java.util.PropertyPermission java.util.Arrays.useLegacyMergeSort write)
at java.security.AccessControlContext.checkPermission(Unknown Source)..."
I have added the following (and several variants of it) to my Java Security Policy file with no luck, can anyone tell me what I am doing wrong please ?
grant {
permission java.security.SecurityPermission "setProperty.java.util.Arrays.useLegacyMergeSort";
};
Thanks,