Branch: refs/heads/main
Home: https://github.com/pmd/pmd
Commit: 497eabe4af4a9ebe6e604bead41caa872e98ae41
https://github.com/pmd/pmd/commit/497eabe4af4a9ebe6e604bead41caa872e98ae41
Author: Subhadeep <[email protected]>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
M docs/pages/release_notes.md
M pmd-java/src/main/resources/category/java/design.xml
M
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/AvoidThrowingNewInstanceOfSameException.xml
Log Message:
-----------
[java] Fix AvoidThrowingNewInstanceOfSameException false positive (#6858)
* [java] Fix AvoidThrowingNewInstanceOfSameException false positive
The rule flagged catch blocks that throw a new instance of the same
exception type, even when the new exception doesn't reference the
caught exception at all (e.g. a brand new message string). It now
requires that the constructor argument actually reference the caught
exception variable, either directly or as a method-call receiver
(e.g. se.getMessage()).
Fixes #6844
* Indentation
* [docs] Update release notes
---------
Co-authored-by: dweep <existing1.001@gmail>
Co-authored-by: Sören Glimm <[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