From 555f372ac53863014949f28887740682f3a362da Mon Sep 17 00:00:00 2001 From: Enrico Olivelli Date: Tue, 7 Apr 2020 17:00:35 +0200 Subject: [PATCH] ZOOKEEPER-3785: Make sources buildable with JDK14 Author: Enrico Olivelli Reviewers: Mate Szalay-Beko , TisunKun Closes #1308 from eolivelli/fix/jdk14 --- .../src/main/java/org/apache/jute/compiler/JRecord.java | 1 + 1 file changed, 1 insertion(+) diff --git a/zookeeper-jute/src/main/java/org/apache/jute/compiler/JRecord.java b/zookeeper-jute/src/main/java/org/apache/jute/compiler/JRecord.java index f53399add02..7c73dedf9c9 100644 --- a/zookeeper-jute/src/main/java/org/apache/jute/compiler/JRecord.java +++ b/zookeeper-jute/src/main/java/org/apache/jute/compiler/JRecord.java @@ -434,6 +434,7 @@ public void genJavaCode(File outputDirectory) throws IOException { jj.write("\n"); jj.write("package " + getJavaPackage() + ";\n\n"); jj.write("import org.apache.jute.*;\n"); + jj.write("import org.apache.jute.Record; // JDK14 needs explicit import due to clash with java.lang.Record\n"); jj.write("import org.apache.yetus.audience.InterfaceAudience;\n"); jj.write("@InterfaceAudience.Public\n"); jj.write("public class " + getName() + " implements Record {\n");