Skip to content

[core] Fix #7013: Only access PMDConfiguration.auxClasspath if it is actually set. - #7019

Merged
UncleOwen merged 1 commit into
pmd:mainfrom
UncleOwen:issue-7013-Can't-mix-setClasspath-with-getAuxClasspath
Sep 3, 2026
Merged

UncleOwen merged 1 commit into
pmd:mainfrom
UncleOwen:issue-7013-Can't-mix-setClasspath-with-getAuxClasspath

Conversation

@UncleOwen

@UncleOwen UncleOwen commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Describe the PR

PMDConfiguration.getAuxClasspath() checks if a classloader is configured and throws an exception if it is. This doesn't work for how it is used in PmdAnalysis.create().

This PR adds a way to check if an auxClasspath is configured or not.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • [n/a] Added (in-code) documentation (if needed)

@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-08-31 16:24:48+00:00 for 552ecd8)

@lukasgraef lukasgraef left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Thanks!

@UncleOwen UncleOwen added this to the 7.28.0 milestone Sep 3, 2026
@UncleOwen
UncleOwen merged commit 65dca5e into pmd:main Sep 3, 2026
13 checks passed
@UncleOwen
UncleOwen deleted the issue-7013-Can't-mix-setClasspath-with-getAuxClasspath branch September 3, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core] PMDConfiguration - "Can't mix setClasspath with getAuxClasspath!"

2 participants