diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-19 03:05:25 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-03-19 03:17:39 +0100 |
commit | 937a4dfca209d30e567a4c4fcbc9fe868221680a (patch) | |
tree | b11cc26d2bb74f8ca59750cc904e344e5f5fa8f5 /test/core | |
parent | 5241235b99286243d02463adc7f8b0fd3d9ab5b4 (diff) | |
download | lombok-937a4dfca209d30e567a4c4fcbc9fe868221680a.tar.gz lombok-937a4dfca209d30e567a4c4fcbc9fe868221680a.tar.bz2 lombok-937a4dfca209d30e567a4c4fcbc9fe868221680a.zip |
[jdk16] fix delombok (and the test suite, which depends on it) for jdk16.
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/src/lombok/RunTestsViaDelombok.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/src/lombok/RunTestsViaDelombok.java b/test/core/src/lombok/RunTestsViaDelombok.java index 13acdf55..08e3283f 100644 --- a/test/core/src/lombok/RunTestsViaDelombok.java +++ b/test/core/src/lombok/RunTestsViaDelombok.java @@ -62,10 +62,15 @@ import lombok.delombok.Delombok; import lombok.javac.CapturingDiagnosticListener; import lombok.javac.Javac; import lombok.javac.CapturingDiagnosticListener.CompilerMessage; +import lombok.javac.apt.LombokProcessor; public class RunTestsViaDelombok extends AbstractRunTests { private Delombok delombok = new Delombok(); + static { + LombokProcessor.addOpensForLombok(); + } + @Override public boolean transformCode(Collection<CompilerMessage> messages, StringWriter result, final File file, String encoding, Map<String, String> formatPreferences, int version, boolean checkPositions) throws Throwable { delombok.setVerbose(true); |