diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-22 01:33:24 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-22 01:33:24 +0200 |
commit | 483e23d3853aa37a19390019fcf0db97ac8bc1d4 (patch) | |
tree | 1794c6fc66136f962ee4c9c6a229e39c0af827e5 /test/core/src/lombok/RunTestsViaEcj.java | |
parent | 59e585a0c68959eb72be34524bdad19df5dc8a4d (diff) | |
download | lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.tar.gz lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.tar.bz2 lombok-483e23d3853aa37a19390019fcf0db97ac8bc1d4.zip |
Added tests for ecj, fixed a few minor bugs that came out of that.
Diffstat (limited to 'test/core/src/lombok/RunTestsViaEcj.java')
-rw-r--r-- | test/core/src/lombok/RunTestsViaEcj.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 3f7d6e81..fa1501bc 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -47,8 +47,10 @@ public class RunTestsViaEcj extends AbstractRunTests { TransformEclipseAST.transform(parser, cud); - for (CategorizedProblem p : compilationResult.getErrors()) { - messages.append(p.toString()).append("\n"); + CategorizedProblem[] problems = compilationResult.getAllProblems(); + + if (problems != null) for (CategorizedProblem p : problems) { + messages.append(String.format("%d %s %s\n", p.getSourceLineNumber(), p.isError() ? "error" : p.isWarning() ? "warning" : "unknown", p.getMessage())); } result.append(cud.toString()); |