Repository navigation
[core] Fix #7156: Analysis cache fails with ZipException on invalid archive - #7157
Merged
Merged
Conversation
3 tasks done
Contributor
|
Compared to main: (comment created at 2026-10-07 08:47:39+00:00 for 90888f1) |
zbynek
approved these changes
Oct 6, 2026
Member
|
Thanks for fixing this. Now I can delete my personal TODO item, which was
|
Contributor
Author
|
@adangel You're welcome. We are trying to release a new Intellij PMD plugin with 7.28.0 and this came out of the tests to reduce cases of UnresolvedType. I think the auxClasspath updates in 7.27.0 also help! Thanks for that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the PR
ZipFileFingerprinteropened every jar/zip on the auxclasspath to fingerprint it for theanalysis cache. An invalid archive aborted the whole analysis with a
ZipException("Incremental analysis can't fingerprint classpath contents"). Such entries are now skipped
with a warning, like
AuxClasspathLoaderdoes since #7102. When the archive later becomesvalid, its entries are part of the fingerprint again, so the cache is invalidated.
Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)Tests
./mvnw -pl pmd-core verify: 6454 tests, 0 failures; checkstyle, PMD and CPD checks, japicmp pass