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

boolean types #4

Open
JulioBorges opened this issue Jan 13, 2014 · 1 comment
Open

boolean types #4

JulioBorges opened this issue Jan 13, 2014 · 1 comment

Comments

@JulioBorges
Copy link

I identified that when we use methods with return type BOOLEAN, the expression generated Boolean.getBoolean(value.ToString()) to return object is not working properly. I did a test where value.ToString() => "true" and the result of Boolean.getBoolean(value.ToString()) is false. The solution is to swap Boolean.getBoolean(value.ToString()); to Boolean.valueOf(value.ToString ());

@marcellanz
Copy link

the issue might be that Boolean.getBoolean(…) might not do what you think

Returns true if and only if the system property named by the argument exists and is equal to the string "true".

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

No branches or pull requests

2 participants