You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2022/05/26 14:50:46 UTC
svn commit: r1901295 - /xmlbeans/trunk/src/main/java/org/apache/xmlbeans/impl/config/ChildSolverCollectionStrategy.java
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: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org