loading rake breaks import
--------------------------
Key: JRUBY-3171
URL: http://jira.codehaus.org/browse/JRUBY-3171
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.1.5
Reporter: Phil Hagelberg
irb(main):001:0> require 'rake'
require 'rake'
=> true
irb(main):002:0> import 'java.net.URL'
import 'java.net.URL'
=> ["java.net.URL"]
irb(main):003:0> URL
URL
NameError: uninitialized constant URL
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/ruby-token.rb:46:in
`const_missing'
from
/home/phil/bin/jruby-1.1.5/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2465:in
`const_missing'
from (irb):4:in `irb_binding'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/workspace.rb:53:in
`eval'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/workspace.rb:81:in
`evaluate'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/context.rb:219:in
`evaluate'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb.rb:150:in `eval_input'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb.rb:259:in
`signal_status'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb.rb:147:in `eval_input'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/ruby-lex.rb:244:in
`each_top_level_statement'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/ruby-lex.rb:230:in
`loop'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/ruby-lex.rb:230:in
`each_top_level_statement'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/ruby-lex.rb:229:in
`catch'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb/ruby-lex.rb:229:in
`each_top_level_statement'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb.rb:146:in `eval_input'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb.rb:70:in `start'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb.rb:69:in `catch'
from /home/phil/bin/jruby-1.1.5/lib/ruby/1.8/irb.rb:69:in `start'
from /home/phil/bin/jruby-1.1.5/bin/jirb:19Maybe IRB bug!!
irb(main):004:0>
--
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