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 #7101: Skip non-archive files on the auxclasspath by kalayciburak · Pull Request #7102 · pmd/pmd Conversation
Contributor
Describe the PR
Related issuesReady?
Tests
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Compared to main: (comment created at 2026-09-25 06:30:44+00:00 for 44b1c6a) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
AuxClasspathLoader treated every regular file as a jar. A native library or other non-zip entry then aborted analysis with ZipException. Skip those entries and keep searching the rest of the classpath.
3550495 to
56251a2
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
I'd log the ignored/skipped entry on debug level, as otherwise we get another new warning. And to get rid of the warning, gradle would need to be fixed (or the config workaround need to be applied).
It would also be better to distinguish between real jar/zip files that are corrupt (e.g. half-finished download) and files, that are not jar/zip files.
Ignoring corrupt jar files could lead to false positives/negatives as PMD might be missing types, so a warning makes sense in that case. Once I've merged #7086, this warning can be ignored (although not recommended - as it causes potential false positive/negatives).
I'll update your PR accordingly, no changes from your side are needed.
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] ZipException when auxClasspath contains a non-jar file (since 7.27.0)
There was an error while loading. Please reload this page.