open-feature / open-feature/java-sdk

Structure.convertValue drops Long values, throwing ValueNotConvertableError

Open Beginner friendly
#2,019 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
128
Forks
61
Avg merge
5h 57m
Merged PRs (30d)
26

Description

`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.

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.