File: 01-java8-compatibility.patch

package info (click to toggle)
ldapjdk 4.21.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,768 kB
  • sloc: ansic: 44,727; java: 39,519; xml: 7,420; sh: 4,237; perl: 3,774; makefile: 1,681; cpp: 979
file content (47 lines) | stat: -rw-r--r-- 1,844 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: Ensure the compiled code remains compatible with Java 8
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/java-sdk/build.xml
+++ b/java-sdk/build.xml
@@ -185,14 +185,17 @@
     <target name="build-jdk" depends="init">
         <!-- Compile the java jdk code from ${src} into ${dest} -->
         <javac srcdir="${basedir}/ldapjdk/com" destdir="${jdk.dist}"
+            release="8"
             excludes="cvs/**"
             classpath="${jsselibs}:${slf4j.lib}"
         />
         <javac srcdir="${basedir}/ldapjdk/netscape" destdir="${jdk.dist}"
+            release="8"
             excludes="cvs/**"
             classpath="${jsselibs}:${slf4j.lib}"
         />
         <javac srcdir="${basedir}/tools" destdir="${jdk.dist}"
+            release="8"
             excludes="cvs/**"
             classpath="${jsselibs}:${slf4j.lib}"
         />
@@ -200,6 +203,7 @@
 
     <target name="build-filter" depends="init,build-jdk">
         <javac srcdir="${basedir}/ldapfilter" destdir="${filter.dist}"
+            release="8"
             excludes="cvs/**"
             classpath="${jdk.dist}:${jsselibs}:${slf4j.lib}"
         />
@@ -208,6 +212,7 @@
     <target name="build-beans" depends="init">
         <!-- Compile the java jdk bean code from ${src} into ${dest} -->
         <javac srcdir="${basedir}/ldapbeans" destdir="${jdk.dist}"
+            release="8"
             excludes="cvs/**"
             classpath="${jsselibs}:${slf4j.lib}"
         />
@@ -216,6 +221,7 @@
     <target name="build-jndi" depends="init,build-jdk">
         <!-- Compile the java code from ${src} into ${dest} -->
         <javac srcdir="${basedir}/ldapsp" destdir="${jndi.dist}"
+            release="8"
             excludes="cvs/**"
             classpath="${jsselibs}:${basedir}/ldapsp/lib/jndi.jar:${slf4j.lib}"
         />