Warning: already initialized constant When Multi-threading
----------------------------------------------------------

                 Key: JRUBY-4251
                 URL: http://jira.codehaus.org/browse/JRUBY-4251
             Project: JRuby
          Issue Type: Bug
         Environment: OS X 10.5.8
            Reporter: Anthony Eden
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.3


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.

-- 
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


Reply via email to