Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use setUseLongsInstance and setUseBooleanInstance in PropertyIndex #3797

Merged
merged 1 commit into from Mar 12, 2024

Conversation

Rocketeer007
Copy link
Contributor

This fixes a subtle bug where the first use of PropertyIndex.loadJSONList, fromJSON or loadJSON would not have used Booleans or Longs, but subsequent requests would. This is not particularly noticeable with Boolean, since the Property logic would coerce a String into a Boolean anyway - but it had the side-effect of setting a new default for all future uses of JSONParser, which could be problematic.

@shai-almog shai-almog merged commit cf4a235 into codenameone:master Mar 12, 2024
1 check passed
@shai-almog
Copy link
Collaborator

Thanks. Great catch!

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.

None yet

3 participants