From 9e38607680abe5d26c7368eee0d83eb6991c0f51 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Fri, 15 Dec 2000 01:09:58 +0000 Subject: [PATCH] JDK 1.1 compatibility. Should flesh out the CommandLine class to do what sun.tools.util.CommandLine does. --- js/js2/jsc/src/java/main/Main.java | 11 ++++++++++- js2/jsc/src/java/main/Main.java | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/js/js2/jsc/src/java/main/Main.java b/js/js2/jsc/src/java/main/Main.java index 42e0b436bf9..453ef310a8c 100644 --- a/js/js2/jsc/src/java/main/Main.java +++ b/js/js2/jsc/src/java/main/Main.java @@ -21,9 +21,18 @@ */ import com.compilercompany.ecmascript.*; -import sun.tools.util.CommandLine; import java.io.*; +/** + * Dummy command line parsing class. + * Probably shouldn't use sun.tools.util.CommandLine. + */ +class CommandLine { + static String[] parse(String[] args) throws IOException { + return args; + } +} + /* * The main driver. */ diff --git a/js2/jsc/src/java/main/Main.java b/js2/jsc/src/java/main/Main.java index 42e0b436bf9..453ef310a8c 100644 --- a/js2/jsc/src/java/main/Main.java +++ b/js2/jsc/src/java/main/Main.java @@ -21,9 +21,18 @@ */ import com.compilercompany.ecmascript.*; -import sun.tools.util.CommandLine; import java.io.*; +/** + * Dummy command line parsing class. + * Probably shouldn't use sun.tools.util.CommandLine. + */ +class CommandLine { + static String[] parse(String[] args) throws IOException { + return args; + } +} + /* * The main driver. */