#caller returns `__send__' as one of the callers #603
The code above if run under MRI Ruby 1.9.3 or 2.0, the output is:
If the code above is running under JRuby 1.7.3, the output is:
The output from MRI Ruby and JRuby are obviously different.
I could add some additional logic to my code using something like RUBY_PLATFORM to find the immediate caller, but isn't a compatibility issue for JRUBY?
The text was updated successfully, but these errors were encountered:
Also, if I change the method to
MRI Ruby (both 1.9.3 and 2.0) will produce the same output (as in previous example).
and this is the same (well...not exactly if compare it word by word) output as in MRI Ruby 1.9.3 or 2.0.
So apparently, JRuby's #caller will not include #send as one of the callers if it is invoked at the parameter.