8170953: CheckResourceKeys tests should declare the resource package to be open
authorjjg
Thu, 08 Dec 2016 16:52:38 -0800
changeset 42496 49cd6effe616
parent 42495 f4aca3ff3766
child 42497 b1efbf109ded
8170953: CheckResourceKeys tests should declare the resource package to be open Reviewed-by: mchung
langtools/test/jdk/javadoc/tool/CheckResourceKeys.java
langtools/test/tools/javac/diags/CheckExamples.java
langtools/test/tools/javac/diags/CheckResourceKeys.java
langtools/test/tools/javac/warnings/VerifyLintDescriptions.java
langtools/test/tools/javadoc/CheckResourceKeys.java
--- a/langtools/test/jdk/javadoc/tool/CheckResourceKeys.java	Thu Dec 08 21:21:48 2016 +0000
+++ b/langtools/test/jdk/javadoc/tool/CheckResourceKeys.java	Thu Dec 08 16:52:38 2016 -0800
@@ -26,6 +26,9 @@
  * @bug 8000612
  * @summary need test program to validate javadoc resource bundles
  * @modules jdk.javadoc/jdk.javadoc.internal.tool
+ *          jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.resources:open
+ *          jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.resources:open
+ *          jdk.javadoc/jdk.javadoc.internal.tool.resources:open
  *          jdk.jdeps/com.sun.tools.classfile
  */
 
--- a/langtools/test/tools/javac/diags/CheckExamples.java	Thu Dec 08 21:21:48 2016 +0000
+++ b/langtools/test/tools/javac/diags/CheckExamples.java	Thu Dec 08 16:52:38 2016 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2016, 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
@@ -28,6 +28,7 @@
  * @modules jdk.compiler/com.sun.tools.javac.api
  *          jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.main
+ *          jdk.compiler/com.sun.tools.javac.resources:open
  *          jdk.compiler/com.sun.tools.javac.util
  * @build Example CheckExamples DocCommentProcessor
  * @run main/othervm CheckExamples
--- a/langtools/test/tools/javac/diags/CheckResourceKeys.java	Thu Dec 08 21:21:48 2016 +0000
+++ b/langtools/test/tools/javac/diags/CheckResourceKeys.java	Thu Dec 08 16:52:38 2016 -0800
@@ -25,8 +25,9 @@
  * @test
  * @bug 6964768 6964461 6964469 6964487 6964460 6964481 6980021
  * @summary need test program to validate javac resource bundles
- * @modules jdk.jdeps/com.sun.tools.classfile
- *          jdk.compiler/com.sun.tools.javac.code
+ * @modules jdk.compiler/com.sun.tools.javac.code
+ *          jdk.compiler/com.sun.tools.javac.resources:open
+ *          jdk.jdeps/com.sun.tools.classfile
  */
 
 import java.io.*;
--- a/langtools/test/tools/javac/warnings/VerifyLintDescriptions.java	Thu Dec 08 21:21:48 2016 +0000
+++ b/langtools/test/tools/javac/warnings/VerifyLintDescriptions.java	Thu Dec 08 16:52:38 2016 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, 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
@@ -26,6 +26,7 @@
  * @bug 8033961
  * @summary Verify that all LintCategories have their descriptions filled.
  * @modules jdk.compiler/com.sun.tools.javac.code
+ *          jdk.compiler/com.sun.tools.javac.resources:open
  *          jdk.compiler/com.sun.tools.javac.util
  */
 
--- a/langtools/test/tools/javadoc/CheckResourceKeys.java	Thu Dec 08 21:21:48 2016 +0000
+++ b/langtools/test/tools/javadoc/CheckResourceKeys.java	Thu Dec 08 16:52:38 2016 -0800
@@ -25,7 +25,10 @@
  * @test
  * @bug 8000612
  * @summary need test program to validate javadoc resource bundles
- * @modules jdk.jdeps/com.sun.tools.classfile
+ * @modules jdk.javadoc/com.sun.tools.doclets.formats.html.resources:open
+ *          jdk.javadoc/com.sun.tools.doclets.internal.toolkit.resources:open
+ *          jdk.javadoc/com.sun.tools.javadoc.resources:open
+ *          jdk.jdeps/com.sun.tools.classfile
  */
 
 import java.io.*;