From 23c624771bc33c72c89854c7b7694154737bbbcc Mon Sep 17 00:00:00 2001 From: alanb Date: Sun, 3 Oct 2010 19:40:15 +0100 Subject: [PATCH] 6907737: (file) FileVisitor and Files.walkFileTree issues Reviewed-by: jjg --- .../classes/com/sun/tools/javac/nio/JavacPathFileManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java b/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java index 66fd4c99..1181c274 100644 --- a/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java +++ b/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java @@ -366,11 +366,11 @@ public class JavacPathFileManager extends BaseFileManager implements PathFileMan // } // } int maxDepth = (recurse ? Integer.MAX_VALUE : 1); - Set opts = EnumSet.of(DETECT_CYCLES, FOLLOW_LINKS); + Set opts = EnumSet.of(FOLLOW_LINKS); Files.walkFileTree(packageDir, opts, maxDepth, new SimpleFileVisitor() { @Override - public FileVisitResult preVisitDirectory(Path dir) { + public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) { if (SourceVersion.isIdentifier(dir.getName().toString())) // JSR 292? return FileVisitResult.CONTINUE; else -- GitLab