--- 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);
}