8179294: several langtools tests depend on jar, jlink, javac but do not declare that dependency
authoranazarov
Fri, 26 Jan 2018 16:20:14 -0800
changeset 48676 f8188cc0d01d
parent 48675 efdb1f63c30d
child 48677 62b6e9b1dfdc
child 56042 40d7b06bb6e9
8179294: several langtools tests depend on jar, jlink, javac but do not declare that dependency Reviewed-by: iignatyev
test/jdk/tools/jlink/JLinkToolProviderTest.java
test/jdk/tools/jlink/multireleasejar/JLinkMultiReleaseJarTest.java
test/jdk/tools/pack200/ModuleAttributes.java
test/jdk/tools/pack200/Pack200Props.java
--- a/test/jdk/tools/jlink/JLinkToolProviderTest.java	Fri Jan 26 12:16:08 2018 -0800
+++ b/test/jdk/tools/jlink/JLinkToolProviderTest.java	Fri Jan 26 16:20:14 2018 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2018, 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 @@
 
 /*
  * @test
+ * @modules jdk.jlink
  * @build JLinkToolProviderTest
  * @run main/othervm/java.security.policy=toolprovider.policy JLinkToolProviderTest
  */
--- a/test/jdk/tools/jlink/multireleasejar/JLinkMultiReleaseJarTest.java	Fri Jan 26 12:16:08 2018 -0800
+++ b/test/jdk/tools/jlink/multireleasejar/JLinkMultiReleaseJarTest.java	Fri Jan 26 16:20:14 2018 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2018, 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
@@ -29,6 +29,10 @@
  * @library /test/lib
  * @modules java.base/jdk.internal.jimage
  *          java.base/jdk.internal.module
+ *          jdk.compiler
+ *          jdk.jartool
+ *          jdk.jlink
+ *          jdk.zipfs
  * @build jdk.test.lib.Utils
  *        jdk.test.lib.Asserts
  *        jdk.test.lib.JDKToolFinder
--- a/test/jdk/tools/pack200/ModuleAttributes.java	Fri Jan 26 12:16:08 2018 -0800
+++ b/test/jdk/tools/pack200/ModuleAttributes.java	Fri Jan 26 16:20:14 2018 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2018, 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
@@ -29,6 +29,8 @@
  * @test
  * @bug 8048100
  * @summary test the new Module attributes
+ * @modules jdk.compiler
+ *          jdk.zipfs
  * @compile -XDignore.symbol.file Utils.java ModuleAttributes.java
  * @run main ModuleAttributes
  */
--- a/test/jdk/tools/pack200/Pack200Props.java	Fri Jan 26 12:16:08 2018 -0800
+++ b/test/jdk/tools/pack200/Pack200Props.java	Fri Jan 26 16:20:14 2018 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2018, 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
@@ -25,6 +25,8 @@
  * @test
  * @bug 6575373 6969063
  * @summary verify default properties of the packer/unpacker and segment limit
+ * @modules jdk.compiler
+ *          jdk.zipfs
  * @compile -XDignore.symbol.file Utils.java Pack200Props.java
  * @run main Pack200Props
  * @author ksrini