8180318: Enable HTML 5 checking at compile time
authorihse
Wed, 17 May 2017 12:44:12 +0200
changeset 45228 b32e004375c1
parent 45227 97be1bcd7b25
child 45229 88a3fab6006f
8180318: Enable HTML 5 checking at compile time Reviewed-by: erikj
make/CompileJavaModules.gmk
make/common/SetupJavaCompilers.gmk
--- a/make/CompileJavaModules.gmk	Wed May 17 12:42:58 2017 +0200
+++ b/make/CompileJavaModules.gmk	Wed May 17 12:44:12 2017 +0200
@@ -42,7 +42,8 @@
 
 ################################################################################
 
-java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*' -XDstringConcat=inline
+java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*' -XDstringConcat=inline \
+    --doclint-format html4
 java.base_COPY := .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
 java.base_CLEAN := intrinsic.properties
 
@@ -95,7 +96,8 @@
 ################################################################################
 
 java.desktop_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference \
-    '-Xdoclint/package:java.*,javax.*' -Xlint:exports
+    '-Xdoclint/package:java.*,javax.*' -Xlint:exports \
+    --doclint-format html4
 java.desktop_COPY := .gif .png .wav .txt .xml .css .pf
 java.desktop_CLEAN := iio-plugin.properties cursors.properties
 
--- a/make/common/SetupJavaCompilers.gmk	Wed May 17 12:42:58 2017 +0200
+++ b/make/common/SetupJavaCompilers.gmk	Wed May 17 12:44:12 2017 +0200
@@ -69,7 +69,7 @@
 $(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE, \
     JVM := $(JAVA_JAVAC), \
     JAVAC := $(NEW_JAVAC), \
-    FLAGS := -source 9 -target 9 \
+    FLAGS := -source 9 -target 9 --doclint-format html5 \
         -encoding ascii -XDignore.symbol.file=true $(JAVAC_WARNINGS), \
     SERVER_DIR := $(SJAVAC_SERVER_DIR), \
     SERVER_JVM := $(SJAVAC_SERVER_JAVA)))