Details
-
Type:
Task
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: None
-
Component/s: Java Integration, Standard Library
-
Labels:None
-
Environment:jruby 1.7.0.dev
-
Number of attachments :
Description
From jruby 1.7.0.dev, circular require is warned in 1.9 mode like CRuby 1.9. And our RubyGems maven extension causes warnings by circular require.
I patched RubyGems at 409c61fb5dace5fc7b532bd78e7d7b4c2ed1bb61 but it modifies RubyGems itself which would make RubyGems update harder.
The requirements are;
- we want to load maven_gemify.rb only if spec_fetcher is required (SpecFetcher is defined by autoload).
- we need to load maven_gemify.rb after spec_fetcher and remote_fetcher to override those definitions.
We should find a way to do above before 1.7.0 GA. I'll try it once RubyGems is updated.
Issue Links
- is duplicated by
-
JRUBY-6210
loading in progress, circular require considered harmful - rubygems
-
-
JRUBY-6585
"warning: loading in progress, circular require considered harmful" warnings
-
Activity
Hiroshi Nakamura
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Hiroshi Nakamura
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Hiroshi Nakamura
made changes -
| Link |
This issue is duplicated by |
Hiro Asari
made changes -
| Link |
This issue is duplicated by |
Charles Oliver Nutter
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Assignee | Hiroshi Nakamura [ nahi ] | Charles Oliver Nutter [ headius ] |
| Resolution | Fixed [ 1 ] |
Fixed at master.
commit d05b492b335945740977dd2a63d8f80278062fb3 Author: Hiroshi Nakamura <nahi@ruby-lang.org> Date: Tue Sep 6 17:37:37 2011 +0900 JRUBY-5985: circular require warning from RubyGems maven extension Try to use autoload to load rubygems/maven_gemify. It started to work by RubyGems update but it's tricky. Hope we can hook RubyGems in the future.