< prev index next >

langtools/src/jdk.dev/share/classes/com/sun/tools/jdeps/JdepsTask.java

Print this page

        

@@ -552,12 +552,13 @@
             initialArchives.addAll(classpaths);
         }
         classpaths.addAll(PlatformClassPath.getModules(options.mpath));
         if (options.mpath != null) {
             initialArchives.addAll(PlatformClassPath.getModules(options.mpath));
-        }
+        } else {
         classpaths.addAll(PlatformClassPath.getJarFiles());
+        }
         // add all classpath archives to the source locations for reporting
         sourceLocations.addAll(classpaths);
     }
 
     private void findDependencies(boolean apiOnly) throws IOException {
< prev index next >