[gcj trunk / gnu-classpath] String.format(...) undefined
Andrew Haley
aph@redhat.com
Sat Feb 17 13:46:00 GMT 2007
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.
More information about the Java
mailing list