Skip to content

Non-thread-safe access in synchronized Results class in DependencyCollectorDelegate #1995

Open

Description

@elharo

Affected version: HEAD

File: maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/DependencyCollectorDelegate.java:571-598

addException() and addCycle() are synchronized on Results, but they call result.getExceptions() and result.getCycles() on a CollectResult that may not be thread-safe. If CollectResult's internal collections are not synchronized or safely published, concurrent modifications may not be visible.

Originally reported in #1944.

Activity

  1. added
    bug
    priority:minor
    on Jul 21, 2026
  2. modified the milestones: 2.1.0, on Sep 1, 2026
  3. added a commit that references this issue on Sep 4, 2026
  4. removed
    priority:minor
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions