Skip to content

Java: Replaced getStackTrace() calls with printStackTrace() calls #7497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

blakejameson
Copy link
Contributor

@blakejameson blakejameson commented Jun 28, 2025

I noticed that in some places getStackTrace() is called instead of printStackTrace(). getStackTrace() returns an array while printStackTrace() goes about actually printing it to System.err. So essentially, in instances where getStackTrace() is called, an array is returned yet not stored, and the pertinent stack trace is never output.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added Java-v1 This issue relates to the AWS SDK for Java V1 Java-v2 This issue relates to the AWS SDK for Java V2 labels Jun 28, 2025
@blakejameson blakejameson marked this pull request as ready for review June 28, 2025 02:18
@scmacdon scmacdon added On Call Review complete On call review complete Bug An update to fix incorrect code or typos. labels Jun 30, 2025
@scmacdon scmacdon force-pushed the fix-stacktrace-typos branch from 8262a37 to d780e27 Compare June 30, 2025 17:59
@scmacdon scmacdon merged commit 306073b into awsdocs:main Jun 30, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An update to fix incorrect code or typos. Java-v1 This issue relates to the AWS SDK for Java V1 Java-v2 This issue relates to the AWS SDK for Java V2 On Call Review complete On call review complete
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants