Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using relative paths to describe the classpath in the error message from ResolveMainClassName hinders problem diagnosis #40463

Closed
wilkinsona opened this issue Apr 22, 2024 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@wilkinsona
Copy link
Member

Looking at #39635 has led me to reconsider the contents of the error message that's produced when the main class name cannot be resolved. The message includes the classpath that was searched but each path is displayed relative to the project's root. In a complex, multi-module project this can hinder problem diagnosis as the exact directories that were searched are not immediately clear.

We can improve the situation by using absolute paths and update the tests. This will also have the side-effect of removing a getProject() call which should address #39635 but in a way that we can reproduce and test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant