This re-implements the removal of some ecj warnings
which reappeared when we switched to the new javac
framework.  I've left on the ones we should cleanup
(generic types, unused variables, etc.).  This removes
the ones for deprecation, serialization UIDs and unused
imports, all of which we had turned off before.  The latter
is broken at present
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=198518)
which shows up with some of our files; ecj doesn't pick up
when an import is used solely to resolve a link in the
documentation.

ChangeLog:

2008-02-17  Andrew John Hughes  <[EMAIL PROTECTED]>

        * m4/ac_prog_javac.m4:
        Turn off ecj warnings for deprecation,
        serialization and unused imports.

-- 
Andrew :)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
Index: m4/ac_prog_javac.m4
===================================================================
RCS file: /sources/classpath/classpath/m4/ac_prog_javac.m4,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 ac_prog_javac.m4
--- m4/ac_prog_javac.m4	12 Feb 2008 22:30:22 -0000	1.1
+++ m4/ac_prog_javac.m4	17 Feb 2008 02:02:59 -0000
@@ -39,7 +39,7 @@ AC_REQUIRE([AC_EXEEXT])dnl
 if test "x$JAVAPREFIX" = x; then
         test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, ecj$EXEEXT javac$EXEEXT "gcj$EXEEXT -C")
 else
-        test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, ecj$EXEEXT javac$EXEEXT "gcj$EXEEXT -C", $JAVAPREFIX)
+        test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, ["ecj$EXEEXT -warn:deprecation,serial,unusedImport"] javac$EXEEXT "gcj$EXEEXT -C", $JAVAPREFIX)
 fi
 test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])
 AC_PROG_JAVAC_WORKS

Attachment: signature.asc
Description: Digital signature

Reply via email to