langtools/src/share/classes/com/sun/tools/sjavac/Source.java
changeset 24295 130c062a5087
parent 24067 76e7b6bbbd85
child 26098 32588700060b
equal deleted inserted replaced
24294:1599838bcaba 24295:130c062a5087
   311             String fn = f.getPath().substring(rootPrefix);
   311             String fn = f.getPath().substring(rootPrefix);
   312             // Extract the package name.
   312             // Extract the package name.
   313             int sp = fn.lastIndexOf(File.separatorChar);
   313             int sp = fn.lastIndexOf(File.separatorChar);
   314             String pkg = "";
   314             String pkg = "";
   315             if (sp != -1) {
   315             if (sp != -1) {
   316                 pkg = fn.substring(0,sp);
   316                 pkg = fn.substring(0,sp).replace('/','.');
   317             }
   317             }
   318             // Is this a module-info.java file?
   318             // Is this a module-info.java file?
   319             if (fn.endsWith("module-info.java")) {
   319             if (fn.endsWith("module-info.java")) {
   320                 // Aha! We have recursed into a module!
   320                 // Aha! We have recursed into a module!
   321                 if (!currentModule.name().equals("")) {
   321                 if (!currentModule.name().equals("")) {