Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.quality.print-stack-trace

printStackTrace() writes to stderr and bypasses the logging framework; it may also leak internals.

Last updated:

Suite: Code quality

java

printStackTrace() writes to stderr and bypasses the logging framework; it may also leak internals.

Category: QUALITY · Engine rule severity: INFO

How to fix it

Log the exception through the application logger.

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

$E.printStackTrace()

References

Source: packages/engine/rules/quality/java.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.