Branch: refs/heads/main
Home: https://github.com/pmd/pmd
Commit: eed52f508ff268b85811a77894550d7d38a0c09e
https://github.com/pmd/pmd/commit/eed52f508ff268b85811a77894550d7d38a0c09e
Author: renechoi <[email protected]>
Date: 2026-08-14 (Fri, 14 Aug 2026)
Changed paths:
M docs/pages/release_notes.md
M pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/RuleSetLoader.java
M
pmd-core/src/main/java/net/sourceforge/pmd/util/internal/ResourceLoader.java
M
pmd-core/src/test/java/net/sourceforge/pmd/lang/rule/RuleSetFactoryTest.java
Log Message:
-----------
[core] Fix #6913: Use the configured class loader in
RuleSetLoader#loadFromString (#6921)
loadFromString wrapped the configured ResourceLoader in an anonymous
subclass created with the no-arg constructor, so the wrapper fell back
to PMD's own class loader. Resource lookups still worked because
loadResourceAsStream delegates to the previous loader, but everything
that goes through the class loader did not: loadRuleFromClassPath could
not find rule classes that are only visible to the class loader passed
to loadResourcesWith, and the ruleset failed to load with a
ClassNotFoundException.
Build the wrapper with the previous loader's class loader so class and
classpath resource resolution keep using it.
Co-authored-by: Andreas Dangel <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/pmd/pmd/settings/notifications
_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits