Skip to content

Listener RuntimeException silently swallowed by default in ChainedRepositoryListener/ChainedTransferListener #1990

Description

@elharo

Affected version: HEAD

Files:

  • maven-resolver-util/src/main/java/org/eclipse/aether/util/listener/ChainedRepositoryListener.java:117
  • maven-resolver-util/src/main/java/org/eclipse/aether/util/listener/ChainedTransferListener.java:118
@SuppressWarnings("EmptyMethod")
protected void handleError(...) {
    // default just swallows errors
}

All RuntimeExceptions thrown by any chained listener (NPEs, IndexOutOfBoundsException, etc.) are silently swallowed unless the user subclasses and overrides handleError. This makes listener bugs invisible.

Originally reported in #1944.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions