Unintuitive error message with java_import
------------------------------------------
Key: JRUBY-4374
URL: http://jira.codehaus.org/browse/JRUBY-4374
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.5
Reporter: Marc-Andre Lafortune
Assignee: Thomas E Enebo
Priority: Minor
java_import produces an uninuitive error message when trying to import a module:
jruby -v -e "require 'java'; java_import java.lang"
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-12-18 a0fe5cb) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
/Users/mal/dev/jruby/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:50:in
`method_missing': wrong number of arguments (1 for 0) (ArgumentError)
from
/Users/mal/dev/jruby/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:49:in
`include_class'
from
/Users/mal/dev/jruby/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:48:in
`each'
from
/Users/mal/dev/jruby/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:48:in
`include_class'
from
/Users/mal/dev/jruby/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:91:in
`java_import'
from -e:1
--
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