Skip to content

fix(sdk-java): use dbInstanceStatus() in e2e poll#815

Merged
vieiralucas merged 1 commit intomainfrom
worktree-java-sdk-fix
Apr 28, 2026
Merged

fix(sdk-java): use dbInstanceStatus() in e2e poll#815
vieiralucas merged 1 commit intomainfrom
worktree-java-sdk-fix

Conversation

@vieiralucas
Copy link
Copy Markdown
Member

@vieiralucas vieiralucas commented Apr 28, 2026

Summary

PR #809 added a DescribeDBInstances poll loop in the Java SDK e2e and called dbInstanceStatusAsString(), but AWS SDK v2 only generates *AsString() accessors for enum-typed Smithy fields. DBInstance.dbInstanceStatus is a plain String, so the bare accessor is correct and the enum-style name fails compilation.

Test plan

  • ./gradlew test in sdks/java compiles and runs.
  • CI Java SDK build-and-test job passes.

Summary by cubic

Fixes the Java SDK e2e RDS poll to use dbInstanceStatus() (a String) instead of dbInstanceStatusAsString(). This restores compilation and correctly checks for "available".

Written for commit 67ef31d. Summary will update on new commits. Review in cubic

`*AsString()` accessors only exist for fields that have an enum
type in the Smithy model. AWS SDK v2's `DBInstance.dbInstanceStatus`
is a plain `String`, so the accessor is the bare `dbInstanceStatus()`.
PR #809's poll loop used the enum-style name and Java compilation
broke.
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vieiralucas vieiralucas merged commit 4945088 into main Apr 28, 2026
42 of 44 checks passed
@vieiralucas vieiralucas deleted the worktree-java-sdk-fix branch April 28, 2026 02:28
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.

1 participant