Following discussion on the list, I'm reverting
the ecj patch.  The original works if correct symlinks
are in place from java.home, so the problem here is with
VMs setting java.home but not making tools.jar available
in an appropriate location.

Changelog:

2007-10-27  Andrew John Hughes  <[EMAIL PROTECTED]>

        PR classpath/33385:
        * tools/com/sun/tools/javac/Main.java:
        Revert patch that adds bootclasspath.

-- 
Andrew :-)

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: tools/com/sun/tools/javac/Main.java
===================================================================
RCS file: /cvsroot/classpath/classpath/tools/com/sun/tools/javac/Main.java,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 Main.java
--- tools/com/sun/tools/javac/Main.java	13 Oct 2007 08:27:56 -0000	1.2
+++ tools/com/sun/tools/javac/Main.java	27 Oct 2007 20:29:15 -0000
@@ -139,13 +139,8 @@ public class Main
           new PrintWriter(System.err),
           Boolean.FALSE
         });
-    String[] runArgs = new String[args.length + 3];
-    runArgs[0] = "-1.5";
-    runArgs[1] = "-bootclasspath";
-    runArgs[2] = (String) System.getProperties().get("java.boot.class.path");
-    System.arraycopy(args, 0, runArgs, 3, args.length);
     return ((Boolean) ecjMethod.invoke(ecjInstance, new Object[]
-        { runArgs })).booleanValue() ? 0 : -1;
+        { args })).booleanValue() ? 0 : -1;
   }
 
   public static int compile(String[] args) throws Exception

Attachment: signature.asc
Description: Digital signature

Reply via email to