This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [gcj trunk / gnu-classpath] String.format(...) undefined
- From: Andrew Haley <aph at redhat dot com>
- To: Hanno Meyer-Thurow <h dot mth at web dot de>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 17 Feb 2007 13:46:15 +0000
- Subject: Re: [gcj trunk / gnu-classpath] String.format(...) undefined
- References: <20070217141309.0ebcb6cf.h.mth@web.de>
Hanno Meyer-Thurow writes:
> Hi list,
> another error I get compiling JUnit-4.2 with gcj 4.2.20070216:
>
> [javac] 2. ERROR in /mnt/data/tmp/portage/dev-java/junit-4.2/work/junit4.2/org/junit/internal/requests/FilterRequest.java (at line 38)
> [javac] .format("No tests found matching %s from %s", fFilter
> [javac] ^^^^^^
> [javac] The method format(String, String, String) is undefined for the type String
String.format is a Java 1.5 method. gcj 4.2 supports a class library
that corresponds to Java 1.4. gcj 4.3 will support a class library
that corresponds to Java 1.5.
Andrew.