--- old/make/CompileJavaModules.gmk 2018-04-09 14:09:12.964835818 +0200 +++ new/make/CompileJavaModules.gmk 2018-04-09 14:09:12.186786591 +0200 @@ -509,6 +509,15 @@ # Exclude BreakIterator classes that are just used in compile process to generate # data files and shouldn't go in the product jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java +################################################################################ + +# There is an issue in sjavac that triggers a warning in jdk.jfr that isn't +# triggered without sjavac. +ifeq ($(ENABLE_SJAVAC), yes) + jdk.jfr_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS +endif +jdk.jfr_COPY := .xsd .xml .dtd +jdk.jfr_ADD_JAVAC_FLAGS := -XDstringConcat=inline -Xlint:-exports ################################################################################ # If this is an imported module that has prebuilt classes, only compile