Hey! Quick question about the Java SDK behavior. ...
# ask-questions
p
Hey! Quick question about the Java SDK behavior. I added a JSON-like value (map/object) to configure a feature/experiment and enabled it, but calling
isOn()
for that key returns false. Looking at the code, the comment says
isOn()
should return true for any “truthy” value, where only null, false, "", and 0 are considered falsy. But the implementation checks specific types and there’s nothing for maps/objects, so it falls back to false. Is this the expected behavior (i.e.,
isOn()
only returns true for certain primitive types), or should objects/maps be considered truthy? Happy to investigate and open a PR if needed, just wanted to confirm the intended behavior first.
👀 1
p
Hi Thanks for mentioning this. You're right, it's a bug. We'll prepare a fix and keep you posted
p
ah cool, thanks!
No rush at all! Just so I know whether I should handle this temporarily on my side, do you have an ETA for the fix?
p
We're planning to have a PR ready today, but it still needs to go through review before release, so I can't give an exact date yet. I'd suggest handling it on your side for now just in case. We'll let you know when release will be available
🙌 2
Hey @powerful-flag-76126 PR with the fix is ready. We'll prepare a release as soon as it's approved! Thanks for helping us to make SDK better 🙌
🚀 1
p
Awesome, thanks for the quick turnaround! 🚀 Happy to help! I’ll keep an eye on the release and update our side once it’s out
p
Hi @powerful-flag-76126! The fix is available in release
implementation("com.github.growthbook:growthbook-sdk-java:0.10.7")
. Could you update to the latest version and let us know if the issue is resolved on your end? Thanks!
🙌 1