Author: fanningpj
Date: Thu May 26 14:50:46 2022
New Revision: 1901295

URL: http://svn.apache.org/viewvc?rev=1901295&view=rev
Log:
[XMLBEANS-608] Memory leak in interface extension handling

Modified:
    
xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/config/ChildSolverCollectionStrategy.java

Modified: 
xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/config/ChildSolverCollectionStrategy.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/config/ChildSolverCollectionStrategy.java?rev=1901295&r1=1901294&r2=1901295&view=diff
==============================================================================
--- 
xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/config/ChildSolverCollectionStrategy.java
 (original)
+++ 
xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/config/ChildSolverCollectionStrategy.java
 Thu May 26 14:50:46 2022
@@ -105,7 +105,7 @@ class ChildSolverCollectionStrategy impl
         @Override
         public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) 
throws IOException {
             if (javaMatcher.matches(file)) {
-                if (roots.stream().noneMatch(file::startsWith)) {
+                if 
(roots.stream().map(Path::toAbsolutePath).noneMatch(file.toAbsolutePath()::startsWith))
 {
                     getRoot(file).ifPresent(r -> {
                         getSolver().add(new JavaParserTypeSolver(r, 
getParserConfiguration()));
                         roots.add(r);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to