desruisseaux commented on code in PR #2347: URL: https://github.com/apache/maven/pull/2347#discussion_r2094595083
########## impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultDependencyResolverResult.java: ########## @@ -97,6 +99,24 @@ public class DefaultDependencyResolverResult implements DependencyResolverResult */ private final PathModularizationCache cache; + /** + * Creates an initially empty result with a temporary cache. + * Callers should add path elements by calls to {@link #addDependency(Node, Dependency, Predicate, Path)}. + * + * <p><b>WARNING: this constructor may be removed in a future Maven release.</b> + * The reason is because {@code DefaultDependencyResolverResult} needs a cache, which should + * preferably by session-wide. But we have not yet clarified how such caches should be managed.</p> + * + * @param request the corresponding request + * @param exceptions the exceptions that occurred while building the dependency graph + * @param root the root node of the dependency graph + * @param count estimated number of dependencies + */ + public DefaultDependencyResolverResult( + DependencyResolverRequest request, List<Exception> exceptions, Node root, int count) { + this(request, new PathModularizationCache(), exceptions, root, count); Review Comment: The `moduleCache()` method is defined in another class. We cannot access that method from here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org