Problems importing classes in default package
---------------------------------------------
Key: JRUBY-4710
URL: http://jira.codehaus.org/browse/JRUBY-4710
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.5
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.5
A regression probably introduced by my cleanup of java_import:
{noformat}
~/projects/jruby ➔ jruby -J-cp . -rjava -e "java_import
Java::IntegerThing"
/Users/headius/projects/jruby/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:56:in
`java_import': bad value for range (ArgumentError)
from -e:1
{noformat}
JRuby 1.4 imports this fine.
Also issues with importing when the class doesn't exist...different error
message:
{noformat}
~/projects/jruby ➔ jruby -J-cp . -rjava -e "java_import Java::Yabba"
/Users/headius/projects/jruby/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:57:in
`java_import': compared with non class/module (TypeError)
from -e:1
~/projects/jruby ➔ ../jruby-1.4.0/bin/jruby -J-cp . -rjava -e
"java_import Java::Yabba"
/Users/headius/projects/jruby/../jruby-1.4.0/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:46:in
`include_class': `to_a' did not return Array (TypeError)
from
/Users/headius/projects/jruby/../jruby-1.4.0/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:91:in
`java_import'
from -e:1
{noformat}
--
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