]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile: fix java build warning
authorSage Weil <sage@inktank.com>
Mon, 29 Apr 2013 21:50:31 +0000 (14:50 -0700)
committerSage Weil <sage@inktank.com>
Mon, 29 Apr 2013 21:50:41 +0000 (14:50 -0700)
This is a workaround that makes the warning go away.  Not certain there
isn't something we should be changing...

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joe Buck <joe.buck@inktank.com>
src/java/Makefile.am

index 790ce0d86561851dc6d25ad8207846f4a3202932..ac7e86cf9fa8698e0baed7410a23ae033fef5a48 100644 (file)
@@ -35,9 +35,16 @@ JAVA_H = native/com_ceph_fs_CephMount.h
 # target to make automake happy
 CEPH_PROXY=java/com/ceph/fs/CephMount.class
 
+# note: for the -source 1.5 builds, we add
+#   -Xlint:-options
+# to get rid of the warning
+#   warning: [options] bootstrap class path not set in conjunction with -source 1.5
+# as per
+#   https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
+
 $(CEPH_PROXY): $(JAVA_SRC)
        export CLASSPATH=java/ ; \
-       $(JAVAC) -source 1.5 -target 1.5 java/com/ceph/fs/*.java
+       $(JAVAC) -source 1.5 -target 1.5 -Xlint:-options java/com/ceph/fs/*.java
 
 $(JAVA_H): $(CEPH_PROXY)
        export CLASSPATH=java/ ; \
@@ -63,7 +70,7 @@ CEPH_TEST_PROXY=test/com/ceph/fs/CephMountTest.class
 
 $(CEPH_TEST_PROXY): $(JAVA_TEST_SRC) $(CEPH_PROXY)
        export CLASSPATH=$(CLASSPATH):$(EXTRA_CLASSPATH_JAR):java/:test/ ; \
-       $(JAVAC) -source 1.5 -target 1.5 test/com/ceph/fs/*.java
+       $(JAVAC) -source 1.5 -target 1.5 -Xlint:-options test/com/ceph/fs/*.java
 
 libcephfs-test.jar: $(CEPH_TEST_PROXY)
        $(JAR) cf $@ $(JAVA_TEST_CLASSES:%=-C test %) $(ESCAPED_JAVA_TEST_CLASSES:%=-C test %)