This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
[gcj trunk / gnu-classpath] String.format(...) undefined
- From: Hanno Meyer-Thurow <h dot mth at web dot de>
- To: java at gcc dot gnu dot org
- Date: Sat, 17 Feb 2007 14:13:09 +0100
- Subject: [gcj trunk / gnu-classpath] String.format(...) undefined
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
[javac] 3. ERROR in /mnt/data/tmp/portage/dev-java/junit-4.2/work/junit4.2/org/junit/internal/runners/TestMe
[javac] thodRunner.java (at line 68)
[javac] addFailure(new Exception(String.format("test timed out after %d milliseconds", timeout)));
[javac] ^^^^^^
[javac] The method format(String, long) is undefined for the type String
[javac] 5. ERROR in /mnt/data/tmp/portage/dev-java/junit-4.2/work/junit4.2/org/junit/runner/Request.java
[javac] (at line 100)
[javac] return String.format("Method %s", desiredDescription.getDisplayName());
[javac] ^^^^^^
[javac] The method format(String, String) is undefined for the type String
[javac] 7. ERROR in /mnt/data/tmp/portage/dev-java/junit-4.2/work/junit4.2/org/junit/runners/Parameterized.java (at line 90)
[javac] return String.format("[%s]", fParameterSetNumber);
[javac] ^^^^^^
[javac] The method format(String, int) is undefined for the type String
[javac] 8. ERROR in /mnt/data/tmp/portage/dev-java/junit-4.2/work/junit4.2/org/junit/runners/Parameterized.j
[javac] ava (at line 95)
[javac] return String.format("%s[%s]", method.getName(), fParameterSetNumber);
[javac] ^^^^^^
[javac] The method format(String, String, int) is undefined for the type String
[javac] 15. ERROR in /mnt/data/tmp/portage/dev-java/junit-4.2/work/junit4.2/org/junit/tests/ForwardCompatibilityTest.java (at line 93)
[javac] assertEquals(String.format(" start %s error %s end %s", testName, testNa
[javac] me, testName), log.toString());
[javac] ^^^^^^
[javac] The method format(String, String, String, String) is undefined for the type String
Regards,
Hanno