Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.3
-
Fix Version/s: JRuby 1.5
-
Component/s: Intro, Java Integration
-
Labels:None
-
Environment:OS X 10.5.8
-
Number of attachments :
Description
When using threadify to create a multi-threaded script where a class uses the Java/Ruby integration layer and where imports are package imports such as:
import org.apache.http
And that class only gets instantiated inside the thread block, the following warning is displayed at start up for a number of classes that are loaded:
/usr/local/lib/jruby-1.3.0/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/module.rb:27 warning: already initialized constant HttpHost
Where HttpHost may be a variety of class names.
I showed this to Charles tonight at RubyConf 2009, and he said he thought it could be fixed inside the JRuby code.
Sorry, the version should be Affects Version: JRuby 1.3, not Fix Version: JRuby 1.3.