Some Rails code uses a shorthand rescue syntax that JRuby does not seem to appreciate. Witness the following tidbit:
def dummy(obj)
obj.missing_method rescue "missing_method"
end
puts dummy("hello")
In C Ruby:
[20:57:24][~/Projects/jruby]$ ruby test/testRescue.rb
missing_method
In JRuby:
[20:57:30][~/Projects/jruby]$ jruby test/testRescue.rb
test/testRescue.rb:2:in `method_missing': undefined method `missing_method' for "hello":String (NoMethodError)
from test/testRescue.rb:2:in `dummy'
from test/testRescue.rb:6
Any ideas of where to look to attempt to fix this? I'll start digging in, but the Java side of JRuby is still fresh for me so I haven't found where yet...
/Nick
- [Jruby-devel] Inline rescue syntax Nick Sieger
- Re: [Jruby-devel] Inline rescue syntax Charles O Nutter
- Re: [Jruby-devel] Inline rescue syntax Nick Sieger
- Re: [Jruby-devel] Inline rescue syntax Charles O Nutter
- Re: [Jruby-devel] Inline rescue syntax Nick Sieger
- Re: [Jruby-devel] Inline rescue syn... Charles O Nutter