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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blakejameson
Copy link

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java-v1 This issue relates to the AWS SDK for Java V1 Java-v2 This issue relates to the AWS SDK for Java V2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant