Native Java Arrays should respond to empty?
-------------------------------------------
Key: JRUBY-4395
URL: http://jira.codehaus.org/browse/JRUBY-4395
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.4
Reporter: Frederic Jean
The following Pastie shows how a native Java array shows a surprising result in
a rails environment: http://pastie.org/758946
Further analysis shows that the ArrayJavaProxy class does not implement the
empty? method. Therefore Rails return the result of !self, which should always
be false for a Java array.
Attaching a patch that adds ArrayJavaProxy#empty? with additions to the
existing array_spec.rb specs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email