Community
Participate
Working Groups
Build 3.2RC7
When writing errors to console, entires look like: ---------- 11. ERROR in X.java (at line 10) X<String> xs = foo(x).identity(); ^^^ The method foo(X) is undefined for the type X ---------- Observe that " (at line 10)" used to be located at end of previous line. An extraneous linebreak got inserted. Seems like this was broken already in 3.1.
### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: batch/org/eclipse/jdt/internal/compiler/batch/Main.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java,v retrieving revision 1.257 diff -u -r1.257 Main.java --- batch/org/eclipse/jdt/internal/compiler/batch/Main.java 21 Jun 2006 17:04:31 -0000 1.257 +++ batch/org/eclipse/jdt/internal/compiler/batch/Main.java 23 Jun 2006 08:33:24 -0000 @@ -535,7 +535,7 @@ if (localErrorCount == 0) { this.printlnErr("----------"); //$NON-NLS-1$ } - this.printlnErr(problem.isError() ? + this.printErr(problem.isError() ? Main.bind( "requestor.error", //$NON-NLS-1$ Integer.toString(globalErrorCount), @@ -546,7 +546,7 @@ new String(problem.getOriginatingFileName()))); try { final String errorReportSource = ((DefaultProblem) problem).errorReportSource(unitSource); - if (errorReportSource.length() != 0) this.printlnErr(errorReportSource); + this.printlnErr(errorReportSource); this.printlnErr(problem.getMessage()); } catch (Exception e) { this.printlnErr(Main.bind(
pls backport to 3.2.1
Created attachment 45240 [details] Proposed patch
Released for 3.3 M1 Released for 3.2.1 Verifier please run ecj on a faulty file or else watch runNegativeTest calls into BatchCompilerTest.
Verified for 3.3 M1 using build I20060807-0010.
Verified for 3.2.1 using ecj_3.2.1.jar from http://www.eclipse.org/jdt/core/r3.2/index.php#UPDATES