Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Boolean.getBoolean(String str) always return false

807605Aug 30 2007 — edited Aug 30 2007
I'm on macOSX (Tiger), using JSDK 1.5.
The function Boolean.getBoolean() return always false.
I try Boolean.getBoolean("true");
Boolean.getBoolean(Boolean.toString(Boolean.TRUE));
...
always false.
Is it a bug only on macOS, or does I do something wrong?

so i just made mybooleanVar.equals("true"); done the right result, but it's just strange that the Boolean.getBoolean(...) function did not return the right value... And I can't send this bug to sun, because they don't assure support for macOSX platform... :s
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2007
Added on Aug 30 2007
5 comments
2,990 views