Skip to content

docs: document Java OpenFeature long values - #994

Merged
jonathannorris merged 4 commits into
mainfrom
docs-java-openfeature-long-values
Aug 7, 2026
Merged

docs: document Java OpenFeature long values#994
jonathannorris merged 4 commits into
mainfrom
docs-java-openfeature-long-values

Conversation

@jonathannorris

Copy link
Copy Markdown
Member

Summary

  • Document getLongValue() usage in the Java OpenFeature provider.
  • Explain the 2^53 - 1 safe-integer limitation.
  • Document TYPE_MISMATCH behavior for fractional and out-of-range values.

Context

This documents the behavior introduced in java-server-sdk PR #196, following the review question about whether the 2^53 limitation was documented.

See the original review comment.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploying devcycle-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 95e63f0
Status: ✅  Deploy successful!
Preview URL: https://893695ae.devcycle-docs.pages.dev
Branch Preview URL: https://docs-java-openfeature-long-v.devcycle-docs.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Java OpenFeature provider documentation to clarify how getLongValue() behaves when DevCycle numeric values are represented as doubles, including precision limits and error behavior.

Changes:

  • Adds an example for retrieving long flag values via getLongValue().
  • Documents the IEEE-754 / 2^53 - 1 safe-integer limitation for long conversions.
  • Clarifies TYPE_MISMATCH behavior for fractional and out-of-range values and recommends getDoubleValue() when needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/sdk/server-side-sdks/java/java-openfeature.md
@jonathannorris

Copy link
Copy Markdown
Member Author

@JamieSinn / @leslie-lau can you take a quick look at this one.

@jonathannorris
jonathannorris merged commit a07b997 into main Aug 7, 2026
5 checks passed
@jonathannorris
jonathannorris deleted the docs-java-openfeature-long-values branch August 7, 2026 16:01
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.

3 participants