Skip to content

[java] Update rule PreserveStackTrace#3179

Merged
oowekyala merged 26 commits into
pmd:pmd/7.0.xfrom
oowekyala:update-PreserveStackTrace
May 25, 2021
Merged

[java] Update rule PreserveStackTrace#3179
oowekyala merged 26 commits into
pmd:pmd/7.0.xfrom
oowekyala:update-PreserveStackTrace

Conversation

@oowekyala

@oowekyala oowekyala commented Mar 28, 2021

Copy link
Copy Markdown
Member

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • Added (in-code) documentation (if needed)
  • This introduces new stackoverflow errors, i need to add a recursion guard...

@oowekyala oowekyala added this to the 7.0.0 milestone Mar 28, 2021
@ghost

ghost commented Mar 28, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 200 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 9443 violations,
introduces 8346 new violations, 1 new errors and 0 new configuration errors,
removes 16028 violations, 8 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 177 new violations, 5 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 9434 violations,
introduces 8332 new violations, 6 new errors and 0 new configuration errors,
removes 16037 violations, 8 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 177 new violations, 5 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 9595 violations,
introduces 8251 new violations, 14 new errors and 0 new configuration errors,
removes 16120 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 183 new violations, 5 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 9595 violations,
introduces 8257 new violations, 14 new errors and 0 new configuration errors,
removes 16120 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 186 new violations, 10 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 9435 violations,
introduces 8260 new violations, 19 new errors and 0 new configuration errors,
removes 16120 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 157 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 9436 violations,
introduces 8257 new violations, 9 new errors and 0 new configuration errors,
removes 16146 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 280 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 9436 violations,
introduces 8315 new violations, 9 new errors and 0 new configuration errors,
removes 16081 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 207 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 8 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 4 violations,
introduces 12 new violations, 1 new errors and 0 new configuration errors,
removes 306688 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 207 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 4 violations,
introduces 12 new violations, 1 new errors and 0 new configuration errors,
removes 290920 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 16 violations,
introduces 223 new violations, 0 new errors and 0 new configuration errors,
removes 4 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 2347 violations,
introduces 5940 new violations, 1 new errors and 0 new configuration errors,
removes 15400 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 207 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
[Full report](<html>

<title>504 Gateway Time-out</title>

504 Gateway Time-out


nginx

</html>/diff1/index.html)

Compared to master:
This changeset changes 4 violations,
introduces 12 new violations, 1 new errors and 0 new configuration errors,
removes 288646 violations, 10 errors and 2 configuration errors.
[Full report](<html>

<title>504 Gateway Time-out</title>

504 Gateway Time-out


nginx

</html>/diff2/index.html)

Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 414 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 9 violations,
introduces 212 new violations, 1 new errors and 0 new configuration errors,
removes 288631 violations, 10 errors and 2 configuration errors.
Full report

Generated by 🚫 Danger

@adangel adangel linked an issue Apr 1, 2021 that may be closed by this pull request

@adangel adangel 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.

I think, there are a few cases of FN/FP we should verify:

Previously reported on master, now with pmd7 they would be ok (FN) -> Is this really correct?

New violations, that are probably false positives:

@oowekyala oowekyala marked this pull request as draft April 10, 2021 22:18
@oowekyala oowekyala linked an issue May 9, 2021 that may be closed by this pull request
oowekyala added 12 commits May 9, 2021 19:31
These are cases where the exception is consumed by the constructor
transitively.
Since we're processing everything recursively now we're effectively
exploring the dataflow graph... only in an indirect way, without respect
for ordering of statements... This can be improved later, and ideally
generalized to help other rules.
This will avoid some FPs at the cost of some FNs.
The rule doesn't handle branches in control flow or loops.
@oowekyala oowekyala marked this pull request as ready for review May 15, 2021 21:33
@oowekyala oowekyala self-assigned this May 25, 2021
@oowekyala oowekyala merged commit 16983ec into pmd:pmd/7.0.x May 25, 2021
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
@oowekyala oowekyala deleted the update-PreserveStackTrace branch May 13, 2024 21:52
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.

[java] PreserveStackTrace not handling Throwable.addSuppressed(...) [java] PreserveStackTrace false-positive

2 participants