File: 18-java17-compatibility.patch

package info (click to toggle)
zookeeper 3.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 27,108 kB
  • sloc: java: 122,772; cpp: 14,071; ansic: 12,480; javascript: 11,754; xml: 4,965; python: 2,829; sh: 2,434; makefile: 244; perl: 114
file content (31 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Fixes the compatibility with OpenJDK 17
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/build.xml
+++ b/build.xml
@@ -382,6 +382,7 @@
     
     <target name="build-generated" depends="compile_jute,version-info,ivy-retrieve" >
         <javac srcdir="${src_generated.dir}" destdir="${build.classes}" includeantruntime="false"
+            release="${javac.target}"
             target="${javac.target}" source="${javac.source}" debug="on" classpath="${ivy.lib}/audience-annotations-${audience-annotations.version}.jar" />
     </target>
     
@@ -538,7 +539,7 @@
          doctitle="${Name} ${version} API"
          bottom="Copyright &amp;copy; ${year} The Apache Software Foundation"
          locale="en"
-         additionalparam="-notimestamp"
+         additionalparam="-notimestamp -Xdoclint:none"
          >
     	<packageset dir="${java.src.dir}">
           <include name="org/apache/**"/>
@@ -564,7 +565,7 @@
          doctitle="${Name} ${version} API"
          bottom="Copyright &amp;copy; ${year} The Apache Software Foundation"
          locale="en"
-         additionalparam="-notimestamp"
+         additionalparam="-notimestamp -Xdoclint:none"
          >
 
         <fileset dir="${java.src.dir}">