@@ -502,16 +502,16 @@ public IFoundFile lookUpInModulePath(String fileName) {
502
502
}
503
503
// transform the path to a String to reuse the
504
504
String uriString = foundModulePath .toUri ().toString ();
505
- String dir = uriString .startsWith ("jrt:/" ) ? uriString : foundModulePath .toAbsolutePath (). toString ();
505
+ Path dir = uriString .startsWith ("jrt:/" ) ? foundModulePath : foundModulePath .toAbsolutePath ();
506
506
507
507
ClassSourceType cst = getClassSourceType (foundModulePath );
508
508
if (null != cst ) {
509
509
switch (cst ) {
510
510
case zip :
511
511
case jar :
512
- return lookupInArchive (dir , className );
512
+ return lookupInArchive (dir . toUri (). toString () , className );
513
513
case directory :
514
- return lookupInDir (dir , className );
514
+ return lookupInDir (dir . toUri (). toString () , className );
515
515
case jrt :
516
516
return lookUpInVirtualFileSystem (dir , className );
517
517
}
@@ -587,9 +587,8 @@ protected IFoundFile lookupInArchive(String archivePath, String fileName) {
587
587
* the file to search
588
588
* @return the FoundFile
589
589
*/
590
- public IFoundFile lookUpInVirtualFileSystem (String archivePath , String fileName ) {
591
- // FileSystem fs = FileSystems.getFileSystem(URI.create(archivePath));
592
- Path foundFile = Paths .get (URI .create (archivePath )).resolve (fileName );
590
+ public IFoundFile lookUpInVirtualFileSystem (Path archivePath , String fileName ) {
591
+ Path foundFile = archivePath .resolve (fileName );
593
592
if (foundFile != null && Files .isRegularFile (foundFile )) {
594
593
return new FoundFile (foundFile );
595
594
} else {
0 commit comments