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 apache#1308 from eolivelli/fix/jdk14
  • Loading branch information
eolivelli authored and RokLenarcic committed Aug 31, 2022
1 parent f74dee6 commit 555f372
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 555f372

Please sign in to comment.