This makes our Javac wrapper a 1.5 compiler.

Changelog:

2007-11-04  Andrew John Hughes  <[EMAIL PROTECTED]>

        PR classpath/33385:
        * tools/com/sun/tools/javac/Main.java:
        Make our wrapper 1.5 capable.

-- 
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.3
diff -u -3 -p -u -r1.3 Main.java
--- tools/com/sun/tools/javac/Main.java	27 Oct 2007 20:32:30 -0000	1.3
+++ tools/com/sun/tools/javac/Main.java	4 Nov 2007 18:09:51 -0000
@@ -139,8 +139,11 @@ public class Main
           new PrintWriter(System.err),
           Boolean.FALSE
         });
+    String[] runArgs = new String[args.length + 1];
+    runArgs[0] = "-1.5";
+    System.arraycopy(args, 0, runArgs, 1, args.length);
     return ((Boolean) ecjMethod.invoke(ecjInstance, new Object[]
-        { args })).booleanValue() ? 0 : -1;
+        { runArgs })).booleanValue() ? 0 : -1;
   }
 
   public static int compile(String[] args) throws Exception

Attachment: signature.asc
Description: Digital signature

Reply via email to