changeset 42517:d3485deb09eb

8170859: Run time and tool support for ModuleResolution Reviewed-by: alanb, mchung Contributed-by: chris.hegarty@oracle.com
author alanb
date Fri, 16 Dec 2016 05:46:45 +0000
parents be65528af252
children f7ec0bceb374
files make/CreateJmods.gmk
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/CreateJmods.gmk	Wed Dec 14 20:23:22 2016 +0000
+++ b/make/CreateJmods.gmk	Fri Dec 16 05:46:45 2016 +0000
@@ -79,6 +79,11 @@
   DEPS += $(call CacheFind, $(MAN_DIR))
 endif
 
+ifeq ($(filter-out jdk.incubator.%, $(MODULE)), )
+  JMOD_FLAGS += --do-not-resolve-by-default
+  JMOD_FLAGS += --warn-if-resolved=incubating
+endif
+
 # Add dependencies on other jmod files. Only java.base needs access to other
 # jmods.
 ifeq ($(MODULE), java.base)