diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-02-04 22:13:14 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-02-04 22:13:23 +0100 |
commit | 0519cb23b1ab4e572d4c6e8b2d8b9c12c19af4ad (patch) | |
tree | 43d155bb2cf2e8afa2c450322fbe1bb1325a5bb1 | |
parent | d958f988a0111fd4621001adef17ef54fab37fec (diff) | |
download | lombok-0519cb23b1ab4e572d4c6e8b2d8b9c12c19af4ad.tar.gz lombok-0519cb23b1ab4e572d4c6e8b2d8b9c12c19af4ad.tar.bz2 lombok-0519cb23b1ab4e572d4c6e8b2d8b9c12c19af4ad.zip |
[fixes #2714] Detect turbine and fail harder than usual.
-rw-r--r-- | src/core/lombok/core/AnnotationProcessor.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lombok/core/AnnotationProcessor.java b/src/core/lombok/core/AnnotationProcessor.java index 3fef46b8..28d16298 100644 --- a/src/core/lombok/core/AnnotationProcessor.java +++ b/src/core/lombok/core/AnnotationProcessor.java @@ -219,8 +219,12 @@ public class AnnotationProcessor extends AbstractProcessor { if (supported.length() > 0) supported.append(", "); supported.append(proc.getName()); } - procEnv.getMessager().printMessage(Kind.WARNING, String.format("You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.\n" + + if (procEnv.getClass().getName().equals("com.google.turbine.processing.TurbineProcessingEnvironment")) { + procEnv.getMessager().printMessage(Kind.ERROR, String.format("Turbine is not currently supported by lombok.")); + } else { + procEnv.getMessager().printMessage(Kind.WARNING, String.format("You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.\n" + "Your processor is: %s\nLombok supports: %s", procEnv.getClass().getName(), supported)); + } } } |