dreamhead wrote:
Hi!
Here is a bug from a Chinese Forum.It's the link if you can read
Chinese. :)
http://www.javaeye.com/topic/101327
if "string"
puts "true"
else
puts "false"
end
C Ruby: true
JRuby: false
We know all objects should be true except false and nil, so it's a bug.
I have debugged the code. The "string" as the if condition is parsed
as MatchNode, so it fails to match.
Wow, that's a weird one. Looks like a job for Mr. Enebo...unless you
have a patch handy :)
Could you file a JIRA?
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email