]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: bump target jdk to 1.7 21082/head
authorShengjing Zhu <zhsj@umcloud.com>
Wed, 28 Mar 2018 04:54:31 +0000 (12:54 +0800)
committerShengjing Zhu <zhsj@umcloud.com>
Wed, 28 Mar 2018 09:24:07 +0000 (17:24 +0800)
jdk 1.7 was released on 2011. For CentOS 6/7, both have openjdk
1.8. For Debian 8(jessie), Ubuntu 14.04(trusty) have openjdk 1.7.
These are the oldest distributions officially built for during
luminous release.

Since jdk 1.9/9, the minimal supported version is 1.6/6.
jdk 1.0/10(recently released) only supports 1.7/7.
http://openjdk.java.net/jeps/182

Fixes: http://tracker.ceph.com/issues/23458
Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
src/java/CMakeLists.txt

index 5276bc2c1ddb5d28b407f6aa523aa5ece7e82106..fe365501de9e4736f9a584a0c67e4e1944e5fcc7 100644 (file)
@@ -15,13 +15,13 @@ set(java_srcs
   java/com/ceph/fs/CephStat.java
   java/com/ceph/fs/CephStatVFS.java)
 
-# note: for the -source 1.5 builds, we add
+# note: for the -source 1.7 builds, we add
 #   -Xlint:-options
 # to get rid of the warning
-#   warning: [options] bootstrap class path not set in conjunction with -source 1.5
+#   warning: [options] bootstrap class path not set in conjunction with -source 1.7
 # as per
 #   https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
-set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.5" "-target" "1.5" "-Xlint:-options")
+set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.7" "-target" "1.7" "-Xlint:-options")
 add_jar(libcephfs ${java_srcs})
 install_jar(libcephfs share/java)
 get_property(libcephfs_jar TARGET libcephfs PROPERTY JAR_FILE)