Description of problem: ecj does not output a newline at the end of its error output (if any), so the bash command prompt (if called interactively) or the next output of the script (if called non-interactively) gets put on the same line as the last line of the ecj error output. You could argue that this is an upstream issue, but upstream might say "it depends how you use it". If you run it within eclipse it is not a problem. If you run "ecj Foo.java" from the command line though, you definitely don't want an absence of a newline at the end of the output. Version-Release number of selected component (if applicable): eclipse-ecj-3.1.0_fc-2 How reproducible: Always Steps to Reproduce: 1. Compile a class which has errors using ecj Classname.java Actual results: ---------- 1. ERROR in org/greenrd/stripj/StripJ.java (at line 37) byte[] result = stripClass (fi, f.length ()); ^^^^^^^^^^ The method stripClass(InputStream, int) in the type StripJ is not applicable for the arguments (FileInputStream, long) ---------- 1 problem (1 error)[root@pob src]# Expected results: ---------- 1. ERROR in org/greenrd/stripj/StripJ.java (at line 37) byte[] result = stripClass (fi, f.length ()); ^^^^^^^^^^ The method stripClass(InputStream, int) in the type StripJ is not applicable for the arguments (FileInputStream, long) ---------- 1 problem (1 error) [root@pob src]#
I noticed this recently. I submitted a patch upstream for consideration: https://bugs.eclipse.org/bugs/show_bug.cgi?id=405176
(In reply to comment #1) > I noticed this recently. > > I submitted a patch upstream for consideration: > https://bugs.eclipse.org/bugs/show_bug.cgi?id=405176 Great! I'll wait to see what upstream has to say. Probably not worth maintaining a patch in fedora if it will come down the pipe in a later release.
Finally got committed upstream's master branch: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=2f57f8dfaade218a320169042ea7ed8e042be61d The fix will be available in a future release of ECJ/JDT so I'm closing this bug.