Skip to content

Conversation

@zbynek
Copy link
Contributor

@zbynek zbynek commented Oct 15, 2025

Fixes a bug referenced in

pmd/pmd#6113 (comment)

I think there's also an unrelated bug with setting the analysis classpath. When I added the JAR, that didn't seem to have any effect until I changed the source level from 25 to something else. It still worked fine after changing it back, so I'm guessing something isn't reloading the classpath when items are added/removed.

@adangel adangel added the bug Something isn't working label Nov 27, 2025
And remove the option to select single class files.
This is not supported.
Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Adding the field "currentClassloader" feels out of place.
I'll update the PR to use a different approach. We have here an event based system - if we look at the event, we know, what has changed...

Also I figured out, that selecting single class files doesn't work - and it never worked and will never work. That's not how classpaths work.
I'll add the possibility to select directories in addition to jar files.

@adangel adangel self-assigned this Nov 27, 2025
@adangel adangel added this to the next milestone Nov 27, 2025
adangel added a commit that referenced this pull request Nov 27, 2025
@adangel adangel merged commit 98afe3e into pmd:main Nov 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants