From af351a4ddf8c607286c78b2dd5198a1cb4fdfb8d Mon Sep 17 00:00:00 2001 From: JoeWang-Java Date: Wed, 1 May 2024 22:30:19 +0000 Subject: [PATCH] Add implNote to java.xml module summary; Update make file; Update the config files; Add test. --- make/modules/java.xml/Copy.gmk | 16 ++- src/java.xml/share/classes/module-info.java | 41 ++++++- .../share/conf/jaxp-compat.properties | 10 +- .../share/conf/jaxp-strict.properties | 9 +- .../common/config/ConfigFileTest.java | 106 ++++++++++++++++++ .../jaxp/unittest/common/util/TestBase.java | 19 +++- 6 files changed, 185 insertions(+), 16 deletions(-) create mode 100644 test/jaxp/javax/xml/jaxp/unittest/common/config/ConfigFileTest.java diff --git a/make/modules/java.xml/Copy.gmk b/make/modules/java.xml/Copy.gmk index 3b6c66e42c5ed..9d24486a4fe34 100644 --- a/make/modules/java.xml/Copy.gmk +++ b/make/modules/java.xml/Copy.gmk @@ -1,5 +1,5 @@ # -# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -24,14 +24,18 @@ # include CopyCommon.gmk +include Modules.gmk ################################################################################ +# +# Copy property files from share/conf to CONF_DST_DIR LIB_DST_DIR +# +JAXPPROPFILE_SRC_DIR := $(TOPDIR)/src/java.xml/share/conf +JAXPPROPFILE_SRCS := $(wildcard $(JAXPPROPFILE_SRC_DIR)/jaxp*.properties*) +JAXPPROPFILE_TARGET_FILES := $(subst $(JAXPPROPFILE_SRC_DIR),$(CONF_DST_DIR),$(JAXPPROPFILE_SRCS)) -XML_LIB_SRC := $(TOPDIR)/src/java.xml/share/conf - -$(CONF_DST_DIR)/jaxp.properties: $(XML_LIB_SRC)/jaxp.properties +$(CONF_DST_DIR)/%: $(JAXPPROPFILE_SRC_DIR)/% $(call install-file) -TARGETS := $(CONF_DST_DIR)/jaxp.properties - +TARGETS += $(JAXPPROPFILE_TARGET_FILES) ################################################################################ diff --git a/src/java.xml/share/classes/module-info.java b/src/java.xml/share/classes/module-info.java index 78ae956151906..febd31cba535f 100644 --- a/src/java.xml/share/classes/module-info.java +++ b/src/java.xml/share/classes/module-info.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -402,6 +402,14 @@ * @implNote * *