11#
2- # Copyright (c) 2015, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2015, 2023 , Oracle and/or its affiliates. All rights reserved.
33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44#
55# This code is free software; you can redistribute it and/or modify it
@@ -36,9 +36,11 @@ TEST_LIB_SUPPORT := $(SUPPORT_OUTPUTDIR)/test/lib
3636
3737$(eval $(call SetupJavaCompilation, BUILD_WB_JAR, \
3838 TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
39- SRC := $(TEST_LIB_SOURCE_DIR)/sun , \
39+ SRC := $(TEST_LIB_SOURCE_DIR)/jdk/test/whitebox/ , \
4040 BIN := $(TEST_LIB_SUPPORT)/wb_classes, \
4141 JAR := $(TEST_LIB_SUPPORT)/wb.jar, \
42+ DISABLED_WARNINGS := deprecation removal preview, \
43+ JAVAC_FLAGS := --enable-preview, \
4244))
4345
4446TARGETS += $(BUILD_WB_JAR)
@@ -50,7 +52,14 @@ $(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \
5052 BIN := $(TEST_LIB_SUPPORT)/test-lib_classes, \
5153 HEADERS := $(TEST_LIB_SUPPORT)/test-lib_headers, \
5254 JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \
53- DISABLED_WARNINGS := try deprecation rawtypes unchecked serial cast, \
55+ DISABLED_WARNINGS := try deprecation rawtypes unchecked serial cast removal preview, \
56+ JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED \
57+ --add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
58+ --add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
59+ --add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
60+ --add-exports java.base/jdk.internal.classfile.java.lang.constant=ALL-UNNAMED \
61+ --add-exports java.base/jdk.internal.module=ALL-UNNAMED \
62+ --enable-preview, \
5463))
5564
5665TARGETS += $(BUILD_TEST_LIB_JAR)
0 commit comments