diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-20 22:37:46 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-20 22:37:46 +0100 |
commit | f153f1cda304d56f9b20cd5e39adf83e74067045 (patch) | |
tree | 332bb85125a3134a15ba132f9fbfa3ef182b4e7f /test/core/src/lombok/RunTestsViaEcj.java | |
parent | 19de8fbe4743afc58df39555602c67e46fc2e016 (diff) | |
parent | 296d1c2ed8a6aa29fb2a1ce7f16ea9e39b49d7d5 (diff) | |
download | lombok-f153f1cda304d56f9b20cd5e39adf83e74067045.tar.gz lombok-f153f1cda304d56f9b20cd5e39adf83e74067045.tar.bz2 lombok-f153f1cda304d56f9b20cd5e39adf83e74067045.zip |
Merge the @Singular feature and the fix for ecj and the shadowloader.
Diffstat (limited to 'test/core/src/lombok/RunTestsViaEcj.java')
-rw-r--r-- | test/core/src/lombok/RunTestsViaEcj.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 90dabcde..2b83b296 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -93,7 +93,7 @@ public class RunTestsViaEcj extends AbstractRunTests { } @Override - public void transformCode(Collection<CompilerMessage> messages, StringWriter result, File file) throws Throwable { + public void transformCode(Collection<CompilerMessage> messages, StringWriter result, File file, String encoding) throws Throwable { final AtomicReference<CompilationResult> compilationResult_ = new AtomicReference<CompilationResult>(); final AtomicReference<CompilationUnitDeclaration> compilationUnit_ = new AtomicReference<CompilationUnitDeclaration>(); ICompilerRequestor bitbucketRequestor = new ICompilerRequestor() { @@ -103,7 +103,7 @@ public class RunTestsViaEcj extends AbstractRunTests { }; String source = readFile(file); - final CompilationUnit sourceUnit = new CompilationUnit(source.toCharArray(), file.getName(), "UTF-8"); + final CompilationUnit sourceUnit = new CompilationUnit(source.toCharArray(), file.getName(), encoding == null ? "UTF-8" : encoding); Compiler ecjCompiler = new Compiler(createFileSystem(file), ecjErrorHandlingPolicy(), ecjCompilerOptions(), bitbucketRequestor, new DefaultProblemFactory(Locale.ENGLISH)) { @Override protected synchronized void addCompilationUnit(ICompilationUnit inUnit, CompilationUnitDeclaration parsedUnit) { |