changeset 2759:04e51caa93f9

8067360: verify-modules target was dropped in jdk9 b41 Reviewed-by: alanb, erikj
author mchung
date Mon, 15 Dec 2014 10:29:54 -0800
parents 3c1b5fcf6fad
children a3c4196fc990
files src/jdk.dev/share/classes/com/sun/tools/jdeps/JdepsTask.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.dev/share/classes/com/sun/tools/jdeps/JdepsTask.java	Fri Dec 12 18:07:24 2014 +0000
+++ b/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);
     }