GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — [java] Fix #7137: InvalidLogMessageFormat: handle unresolved exception type (incomplete auxclasspath) by KaustAbhinand · Pull Request #7160 · pmd/pmd Conversation
Contributor
Describe the PRThis PR fixes issue #7137. Related issuesCloses #7137
Ready?Yes, according to me
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Compared to main: (comment created at 2026-10-26 15:13:10+00:00 for b44c8f3) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The unit test added here confirms that the issue exists if the auxiliary classpath is not configured correctly and PMD cannot see the type hierarchy of the custom exception. The fix makes the code more robust in case the type information is missing. I'd suggest to update the PR description and the test description to reflect that. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good.
I think, this makes a reasonable improvement for the case, that PMD is called wrongly (without the correct auxclasspath). The catch parameter must be of type throwable, so this assumption is pretty safe.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[java] InvalidLogMessageFormat: False positive for unresolved exception type (incomplete auxclasspath)
There was an error while loading. Please reload this page.