Skip to content

Commit

Permalink
ZOOKEEPER-3785: Make sources buildable with JDK14
Browse files Browse the repository at this point in the history
Author: Enrico Olivelli <[email protected]>

Reviewers: Mate Szalay-Beko <[email protected]>, TisunKun <[email protected]>

Closes #1308 from eolivelli/fix/jdk14

(cherry picked from commit a8fb880)
Signed-off-by: Enrico Olivelli <[email protected]>
  • Loading branch information
eolivelli committed Apr 7, 2020
1 parent f6df585 commit 7bf53e7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,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");
Expand Down

0 comments on commit 7bf53e7

Please sign in to comment.