This patch should simplify the compiler testing so that it is not as reliant on the underlying class library of the compiler (indeed, it shouldn't need one). This has been causing problems with ecj, especially the broken copy on builder. Thanks to Robert Schuster for the original suggestion.
2008-02-15 Andrew John Hughes <[EMAIL PROTECTED]> PR classpath/34579: * m4/ac_prog_javac_works.m4: Change test to one that doesn't rely on the compiler's class library. -- Andrew :-) Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html public class gcj extends Freedom implements Java { ... }
Index: m4/ac_prog_javac_works.m4 =================================================================== RCS file: /sources/classpath/classpath/m4/ac_prog_javac_works.m4,v retrieving revision 1.1 diff -u -3 -p -u -r1.1 ac_prog_javac_works.m4 --- m4/ac_prog_javac_works.m4 12 Feb 2008 22:30:22 -0000 1.1 +++ m4/ac_prog_javac_works.m4 15 Feb 2008 21:04:28 -0000 @@ -18,13 +18,17 @@ dnl Modified to test for 1.5 by Andrew J AC_DEFUN([AC_PROG_JAVAC_WORKS],[ AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [ -JAVA_TEST=Colour.java -CLASS_TEST=Colour.class +JAVA_TEST=Object.java +CLASS_TEST=Object.class cat << \EOF > $JAVA_TEST /* [#]line __oline__ "configure" */ -public enum Colour +package java.lang; + +public class Object { -RED, ORANGE, YELLOW, GREEN, BLUE, INDIGO, VIOLET; + static <T> void doStuff() + { + } } EOF if AC_TRY_COMMAND($JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST) >/dev/null 2>&1; then
signature.asc
Description: Digital signature