8067360: verify-modules target was dropped in jdk9 b41
authormchung
Mon, 15 Dec 2014 10:29:54 -0800
changeset 28143 3cc6372e77a3
parent 28142 32a6b1af81b1
child 28144 daec48e77612
8067360: verify-modules target was dropped in jdk9 b41 Reviewed-by: alanb, erikj
langtools/src/jdk.dev/share/classes/com/sun/tools/jdeps/JdepsTask.java
--- a/langtools/src/jdk.dev/share/classes/com/sun/tools/jdeps/JdepsTask.java	Fri Dec 12 18:07:24 2014 +0000
+++ b/langtools/src/jdk.dev/share/classes/com/sun/tools/jdeps/JdepsTask.java	Mon Dec 15 10:29:54 2014 -0800
@@ -554,8 +554,9 @@
         classpaths.addAll(PlatformClassPath.getModules(options.mpath));
         if (options.mpath != null) {
             initialArchives.addAll(PlatformClassPath.getModules(options.mpath));
+        } else {
+            classpaths.addAll(PlatformClassPath.getJarFiles());
         }
-        classpaths.addAll(PlatformClassPath.getJarFiles());
         // add all classpath archives to the source locations for reporting
         sourceLocations.addAll(classpaths);
     }