Skip to content

DependencyClassFileVisitor is throwing runtime exceptions that aren't handled on all paths #243

@elharo

Description

@elharo

Affected version

head

Bug description

src/main/java/org/apache/maven/shared/dependency/analyzer/asm/DependencyClassFileVisitor.java

This is exactly the mistake checked exceptions were designed to prevent. Replace VisitClassException with a checked exception and add throws/catch blocks where needed.

It looks like this can be fixed without changing the public API.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions