You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[core] PMDConfiguration - "Can't mix setClasspath with getAuxClasspath!" #7013
Call PMDConfiguration#setClassLoader and do an analysis PmdAnalysis.create(pmdConfig) → Crashes
Exception Stacktrace:
2026-08-31 09:20:49,922 [ 94383] SEVERE - #software.xdev.pmd.annotator.PMDExternalLanguageAnnotator - Failed to annotate
java.lang.IllegalStateException: Can't mix setClasspath with getAuxClasspath!
at net.sourceforge.pmd.PMDConfiguration.getAuxClasspath(PMDConfiguration.java:353)
at net.sourceforge.pmd.PmdAnalysis.create(PmdAnalysis.java:221)
at software.xdev.pmd.analysis.PMDAnalyzer.analyzeInternal(PMDAnalyzer.java:203)
...
@UncleOwen Is this test executed using a JvmLanguagePropertyBundle? You probably need to configure a language like Java because otherwise the condition might not be triggered - at least as far as I have seen in the code...
changed the title [-]"Can't mix setClasspath with getAuxClasspath!"[/-][+][core] PMDConfiguration - "Can't mix setClasspath with getAuxClasspath!"[/+]on Aug 31, 2026
Activity
UncleOwen commentedon Aug 31, 2026
Can't reproduce. The following test is green.
AB-xdev commentedon Aug 31, 2026
@UncleOwen Is this test executed using a
JvmLanguagePropertyBundle? You probably need to configure a language like Java because otherwise the condition might not be triggered - at least as far as I have seen in the code...UncleOwen commentedon Aug 31, 2026
Ah, I took your problem description a bit too literal. Now I can reproduce.
Only access PMDConfiguration.auxClasspath if it is actually set.
[-]"Can't mix setClasspath with getAuxClasspath!"[/-][+][core] PMDConfiguration - "Can't mix setClasspath with getAuxClasspath!"[/+][core] Fix pmd#7013: Only access PMDConfiguration.auxClasspath if it …