Java class equality operator is order dependent
-----------------------------------------------
Key: JRUBY-4724
URL: http://jira.codehaus.org/browse/JRUBY-4724
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.4, JRuby 1.5
Reporter: David Kellum
Attachments: Foo.java, test_java_class_object_2.rb
This is an apparent long standing asymmetry in java class comparison (which I
had previously unwittingly worked around with to_java_object.)
See attached test case where essentially:
Foo.new.value_type == Java::java.lang.Integer.java_class => true
Java::java.lang.Integer.java_class == Foo.new.value_type => false
where Foo::value_type is a Java method returning the Class<Integer> class
object.
--
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