This fixes the final varargs warning and removes
the restriction on ecj.

Changelog:

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

        * gnu/java/lang/MainThread.java:
        Fix varargs warning.
        * lib/Makefile.am:
        Remove restriction on ecj printing varargs warnings.

-- 
Andrew :-)

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: gnu/java/lang/MainThread.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/lang/MainThread.java,v
retrieving revision 1.8
diff -u -3 -p -u -r1.8 MainThread.java
--- gnu/java/lang/MainThread.java	2 Jul 2005 20:32:12 -0000	1.8
+++ gnu/java/lang/MainThread.java	1 Nov 2007 22:43:18 -0000
@@ -69,7 +69,7 @@ public class MainThread
   {
     try
       {
-	mainMethod.invoke(null,args);
+	mainMethod.invoke(null,(Object) args);
       }
     catch(IllegalAccessException e)
       {
Index: lib/Makefile.am
===================================================================
RCS file: /cvsroot/classpath/classpath/lib/Makefile.am,v
retrieving revision 1.138
diff -u -3 -p -u -r1.138 Makefile.am
--- lib/Makefile.am	12 Oct 2007 21:37:44 -0000	1.138
+++ lib/Makefile.am	1 Nov 2007 22:43:26 -0000
@@ -9,7 +9,7 @@ compile_classpath = $(vm_classes):$(top_
 
 # handling source to bytecode compiler programs like gcj, jikes  and kjc
 if FOUND_ECJ
-JCOMPILER = $(ECJ) -1.5 -warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast -proceedOnError -bootclasspath '' -classpath $(compile_classpath) -d . @classes
+JCOMPILER = $(ECJ) -1.5 -warn:-deprecation,serial,typeHiding,unchecked,unused -proceedOnError -bootclasspath '' -classpath $(compile_classpath) -d . @classes
 else
 if FOUND_JAVAC
 JCOMPILER = $(JAVAC) $(JAVAC_OPTS) -bootclasspath '' -classpath $(compile_classpath) -d . @classes

Attachment: signature.asc
Description: Digital signature

Reply via email to