Require 'java' circular dependency

Hello all.
Noticed today that with yesterday’s build, I get this “scary” message:

$ jruby -ve “require ‘java’”
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-17 c550df6) (Java
HotSpot™ Client VM 1.6.0_32) [Windows 7-x86-java]
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
warning: loading in progress, circular require considered harmful - java
require at org/jruby/RubyKernel.java:991
require at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at c:/dev/ruby/downloads/jruby/lib/ruby/shared/jruby.rb:1
require at org/jruby/RubyKernel.java:991
(root) at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
require at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
require at org/jruby/RubyKernel.java:991
(root) at
file:/C:/dev/ruby/downloads/jruby/lib/jruby.jar!/jruby/java/java_ext/java.io.rb:1
(root) at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
require at org/jruby/RubyKernel.java:991
require at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at
file:/C:/dev/ruby/downloads/jruby/lib/jruby.jar!/jruby/java/java_ext.rb:6
require at org/jruby/RubyKernel.java:991
(root) at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
(root) at -e:1
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
warning: loading in progress, circular require considered harmful - java
require at org/jruby/RubyKernel.java:991
require at org/jruby/RubyKernel.java:991
require at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at c:/dev/ruby/downloads/jruby/lib/ruby/shared/jruby.rb:148
require at org/jruby/RubyKernel.java:991
(root) at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
require at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
require at org/jruby/RubyKernel.java:991
(root) at
file:/C:/dev/ruby/downloads/jruby/lib/jruby.jar!/jruby/java/java_ext/java.io.rb:1
(root) at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
require at org/jruby/RubyKernel.java:991
require at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at
file:/C:/dev/ruby/downloads/jruby/lib/jruby.jar!/jruby/java/java_ext.rb:6
require at org/jruby/RubyKernel.java:991
(root) at
c:/dev/ruby/downloads/jruby/lib/ruby/shared/rubygems/custom_require.rb:1
(root) at -e:1

May want to clean that…
-r

Confirmed. Toss into a bug (JIRA or GH).

  • Charlie

And fixed, thanks!

http://jira.codehaus.org/browse/JRUBY-6714