aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/Runtime.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang/Runtime.java')
-rw-r--r--libjava/java/lang/Runtime.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/libjava/java/lang/Runtime.java b/libjava/java/lang/Runtime.java
index eb34391..932600b 100644
--- a/libjava/java/lang/Runtime.java
+++ b/libjava/java/lang/Runtime.java
@@ -526,7 +526,6 @@ public class Runtime
* entries
* @throws IndexOutOfBoundsException if cmd is length 0
* @since 1.3
- * @XXX Ignores dir, for now
*/
public Process exec(String[] cmd, String[] env, File dir)
throws IOException
@@ -534,10 +533,7 @@ public class Runtime
SecurityManager sm = securityManager; // Be thread-safe!
if (sm != null)
sm.checkExec(cmd[0]);
- if (env == null)
- env = new String[0];
- //XXX Should be: return execInternal(cmd, env, dir);
- return execInternal(cmd, env);
+ return execInternal(cmd, env, dir);
}
/**
@@ -729,7 +725,6 @@ public class Runtime
* the environment should contain name=value mappings. If directory is null,
* use the current working directory; otherwise start the process in that
* directory.
- * XXX Add directory support.
*
* @param cmd the non-null command tokens
* @param env the non-null environment setup
@@ -737,8 +732,7 @@ public class Runtime
* @return the newly created process
* @throws NullPointerException if cmd or env have null elements
*/
- // native Process execInternal(String[] cmd, String[] env, File dir);
- native Process execInternal(String[] cmd, String[] env);
+ native Process execInternal(String[] cmd, String[] env, File dir);
/**
* Get the system properties. This is done here, instead of in System,