You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that eql? is returning false for these two values. when everything else points to them being the exact same symbol. The symbols in question are defined in two different ruby files but both are part of the same ruby gem. the key symbol was declared in a class context while the type symbol was referenced in an instance context.
Is it possible you're getting symbols from two different JRuby instances in the same code? They would appear to be identical, but because they're from different instances they'd be different objects.
I might also suspect encoding, but the symbols appear to have the same bytes here.
I've got the following ruby code:
Which produces the following output:
Note that
eql?
is returning false for these two values. when everything else points to them being the exact same symbol. The symbols in question are defined in two different ruby files but both are part of the same ruby gem. thekey
symbol was declared in a class context while thetype
symbol was referenced in an instance context.Running against jruby-complete-1.7.11.jar.
This jar file can reproduce the issue:
https://github.com/chriseppstein/misc/blob/master/junkdrawer/class_loader_importer_test.jar
with the following command:
The text was updated successfully, but these errors were encountered: