jruby --fast complains of wrong argument type Symbol (expected Module) when
calling __send__
--------------------------------------------------------------------------------------------
Key: JRUBY-3364
URL: http://jira.codehaus.org/browse/JRUBY-3364
Project: JRuby
Issue Type: Bug
Components: Performance
Affects Versions: JRuby 1.2
Environment: Mac OS X, JRuby trunk r8984
Reporter: Kamal Fariz
Priority: Minor
The following reduction illustrates the issue:
{code:none}
class Foo; end
Foo.__send__(:include, Module.new)
{code}
The backtrace:
{code:none}
Thread.java:1444:in `getStackTrace': wrong argument type Symbol (expected
Module) (TypeError)
from RubyException.java:139:in `setBacktraceFrames'
from RaiseException.java:149:in `setException'
from RaiseException.java:70:in `<init>'
from Ruby.java:2884:in `newRaiseException'
from Ruby.java:2850:in `newTypeError'
from RubyModule.java:1850:in `include'
from org/jruby/RubyModule$i_method_0_0$RUBYINVOKER$include.gen:-1:in
`call'
from JavaMethod.java:614:in `call'
from DynamicMethod.java:169:in `call'
from CachingCallSite.java:293:in `cacheAndCall'
from CachingCallSite.java:152:in `call'
from jruby.rb:2:in `__file__'
from jruby.rb:-1:in `load'
from Ruby.java:575:in `runScript'
from Ruby.java:478:in `runNormally'
from Ruby.java:352:in `runFromMain'
from Main.java:214:in `run'
from Main.java:100:in `run'
from Main.java:84:in `main'
{code}
--
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