Structure.convertValue drops Long values, throwing ValueNotConvertableError

Open Beginner friendly
#2,019 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
api

Research direction

Start by inspecting Structure.convertValue and the Value handling introduced in #1985. Reproduce the failure with a Long context value, then check the existing conversion tests or add coverage for this case. Done means Long values are converted successfully without ValueNotConvertableError.

Written by the indexing model from the issue text.

Description

bug

Structure.convertValue only handles Integer/Double numbers, so a Long context value (supported by Value since #1985) falls through and throws ValueNotConvertableError instead of being converted.

Dominant language
Java
Stars
128
Forks
61
Avg merge
5h 57m
Merged PRs (30d)
26

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from open-feature/java-sdk

All issues in open-feature/java-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.