< prev index next >

make/test/BuildTestLib.gmk

Print this page
*** 45,11 ***
      TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
      SRC := $(TEST_LIB_SOURCE_DIR)/jdk/test/whitebox/, \
      BIN := $(TEST_LIB_SUPPORT)/wb_classes, \
      JAR := $(TEST_LIB_SUPPORT)/wb.jar, \
      DISABLED_WARNINGS := deprecation removal preview, \
-     JAVAC_FLAGS := --enable-preview, \
  ))
  
  TARGETS += $(BUILD_WB_JAR)
  
  ifeq ($(call isTargetOs, linux), false)
--- 45,10 ---

*** 57,24 ***
  endif
  
  $(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \
      TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
      SRC := $(TEST_LIB_SOURCE_DIR), \
!     EXCLUDES := $(BUILD_TEST_LIB_JAR_EXCLUDES), \
      BIN := $(TEST_LIB_SUPPORT)/test-lib_classes, \
      HEADERS := $(TEST_LIB_SUPPORT)/test-lib_headers, \
      JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \
      JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.module=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.platform=ALL-UNNAMED \
          --add-exports java.base/sun.security.pkcs=ALL-UNNAMED \
          --add-exports java.base/sun.security.provider.certpath=ALL-UNNAMED \
          --add-exports java.base/sun.security.tools.keytool=ALL-UNNAMED \
          --add-exports java.base/sun.security.x509=ALL-UNNAMED \
          --enable-preview, \
  ))
  
  TARGETS += $(BUILD_TEST_LIB_JAR)
  
--- 56,31 ---
  endif
  
  $(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \
      TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
      SRC := $(TEST_LIB_SOURCE_DIR), \
!     EXCLUDES := $(BUILD_TEST_LIB_JAR_EXCLUDES) org, \
      BIN := $(TEST_LIB_SUPPORT)/test-lib_classes, \
      HEADERS := $(TEST_LIB_SUPPORT)/test-lib_headers, \
      JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \
+     DISABLED_WARNINGS := try deprecation rawtypes unchecked serial cast removal preview restricted varargs dangling-doc-comments, \
      JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.module=ALL-UNNAMED \
          --add-exports java.base/jdk.internal.platform=ALL-UNNAMED \
          --add-exports java.base/sun.security.pkcs=ALL-UNNAMED \
          --add-exports java.base/sun.security.provider.certpath=ALL-UNNAMED \
          --add-exports java.base/sun.security.tools.keytool=ALL-UNNAMED \
          --add-exports java.base/sun.security.x509=ALL-UNNAMED \
+         --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
+         --add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
+         --add-exports jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
+         --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
+         --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
+         --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
          --enable-preview, \
  ))
  
  TARGETS += $(BUILD_TEST_LIB_JAR)
  
< prev index next >