diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-12-04 23:45:57 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-12-05 00:00:08 +0100 |
commit | ab8e14736f8c3a7cb96ae7351d4bb1818131f2b2 (patch) | |
tree | 43315dfa6e746a9a59244bf4314fcea535045412 /src/utils/lombok/javac/CommentCatcher.java | |
parent | a92117574e10a7949bb0262786698d138056360b (diff) | |
download | lombok-ab8e14736f8c3a7cb96ae7351d4bb1818131f2b2.tar.gz lombok-ab8e14736f8c3a7cb96ae7351d4bb1818131f2b2.tar.bz2 lombok-ab8e14736f8c3a7cb96ae7351d4bb1818131f2b2.zip |
[JDK9] fixing delombok’s comment integration in JDK9.
Diffstat (limited to 'src/utils/lombok/javac/CommentCatcher.java')
-rw-r--r-- | src/utils/lombok/javac/CommentCatcher.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/lombok/javac/CommentCatcher.java b/src/utils/lombok/javac/CommentCatcher.java index c32da68b..afbd7b52 100644 --- a/src/utils/lombok/javac/CommentCatcher.java +++ b/src/utils/lombok/javac/CommentCatcher.java @@ -95,8 +95,10 @@ public class CommentCatcher { parserFactory = Class.forName("lombok.javac.java6.CommentCollectingParserFactory"); } else if (javaCompilerVersion == 7) { parserFactory = Class.forName("lombok.javac.java7.CommentCollectingParserFactory"); - } else { + } else if (javaCompilerVersion == 8) { parserFactory = Class.forName("lombok.javac.java8.CommentCollectingParserFactory"); + } else { + parserFactory = Class.forName("lombok.javac.java9.CommentCollectingParserFactory"); } parserFactory.getMethod("setInCompiler", JavaCompiler.class, Context.class).invoke(null, compiler, context); } catch (InvocationTargetException e) { |