jruby -e chomp throws AbstractMethodError
-----------------------------------------
Key: JRUBY-2527
URL: http://jira.codehaus.org/browse/JRUBY-2527
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.1
Environment: OS: Windows Vista Ultimate Service Pack 1
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
Reporter: Gabor Kolok
Assignee: Thomas E Enebo
c:\java\jruby-1.1.1\bin>jruby -e chomp
Exception in thread "main" java.lang.AbstractMethodError:
org.jruby.internal.runtime.methods.DynamicMethod.call(Lor
g/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;)Lorg/
jruby/runtime/builtin/IRubyObject;
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:116)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:270)
at ruby.__dash_e__.__file__(-e:1)
at ruby.__dash_e__.load(-e)
at org.jruby.Ruby.runScript(Ruby.java:511)
at org.jruby.Ruby.runNormally(Ruby.java:431)
at org.jruby.Ruby.runFromMain(Ruby.java:311)
at org.jruby.Main.run(Main.java:144)
at org.jruby.Main.run(Main.java:89)
at org.jruby.Main.main(Main.java:80)
c:\java\jruby-1.1.1\bin>
The same command runs well using JRuby 1.1 (NetBeans 6.1 built in):
c:\java\NetBeans6.1\ruby2\jruby-1.1\bin>jruby -e chomp
-e:1:in `chomp': $_ value need to be String (nil given). (TypeError)
from -e:1
c:\java\NetBeans6.1\ruby2\jruby-1.1\bin>
--
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