changeset 6666:2d070be9a313

8015965: (process) Typo in name of property to allow ambiguous commands Reviewed-by: alanb
author coffeys
date Wed, 05 Jun 2013 18:39:44 +0100
parents 49b7500a2ca6
children 5c09550dfc12
files src/windows/classes/java/lang/ProcessImpl.java test/java/lang/Runtime/exec/ExecCommand.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/classes/java/lang/ProcessImpl.java	Tue Jun 04 13:32:16 2013 -0700
+++ b/src/windows/classes/java/lang/ProcessImpl.java	Wed Jun 05 18:39:44 2013 +0100
@@ -314,13 +314,13 @@
     {
         String cmdstr;
         SecurityManager security = System.getSecurityManager();
-        boolean allowAmbigousCommands = false;
+        boolean allowAmbiguousCommands = false;
         if (security == null) {
-            String value = System.getProperty("jdk.lang.Process.allowAmbigousCommands");
+            String value = System.getProperty("jdk.lang.Process.allowAmbiguousCommands");
             if (value != null)
-                allowAmbigousCommands = !"false".equalsIgnoreCase(value);
+                allowAmbiguousCommands = !"false".equalsIgnoreCase(value);
         }
-        if (allowAmbigousCommands) {
+        if (allowAmbiguousCommands) {
             // Legacy mode.
 
             // Normalize path if possible.
--- a/test/java/lang/Runtime/exec/ExecCommand.java	Tue Jun 04 13:32:16 2013 -0700
+++ b/test/java/lang/Runtime/exec/ExecCommand.java	Wed Jun 05 18:39:44 2013 +0100
@@ -129,7 +129,7 @@
         for (int k = 0; k < 3; ++k) {
             switch (k) {
             case 1:
-                System.setProperty("jdk.lang.Process.allowAmbigousCommands", "");
+                System.setProperty("jdk.lang.Process.allowAmbiguousCommands", "");
                 break;
             case 2:
                 System.setSecurityManager( new SecurityMan() );