We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2553772 commit f6e4da8Copy full SHA for f6e4da8
src/main/java/org/apache/xmlbeans/impl/config/ChildSolverCollectionStrategy.java
@@ -105,7 +105,7 @@ private class FileVisitor extends SimpleFileVisitor<Path> {
105
@Override
106
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
107
if (javaMatcher.matches(file)) {
108
- if (roots.stream().noneMatch(file::startsWith)) {
+ if (roots.stream().map(Path::toAbsolutePath).noneMatch(file.toAbsolutePath()::startsWith)) {
109
getRoot(file).ifPresent(r -> {
110
getSolver().add(new JavaParserTypeSolver(r, getParserConfiguration()));
111
roots.add(r);
0 commit comments