From 3f6d668f8343d2f78736ea36c7b5aa33013fea73 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 18 Apr 2021 06:00:33 +0200 Subject: [StandardExceptions] fix for javac --- src/utils/lombok/javac/Javac.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils') diff --git a/src/utils/lombok/javac/Javac.java b/src/utils/lombok/javac/Javac.java index c0bda93c..d9fcc4f2 100644 --- a/src/utils/lombok/javac/Javac.java +++ b/src/utils/lombok/javac/Javac.java @@ -260,6 +260,9 @@ public class Javac { } } + /** + * In some versions, the field's type is {@code JCTree}, in others it is {@code JCExpression}, which at the JVM level are not the same. + */ public static JCTree getExtendsClause(JCClassDecl decl) { try { return (JCTree) getExtendsClause.invoke(decl); -- cgit