Collision Warning When Loading AOT Compiled Class
-------------------------------------------------

                 Key: JRUBY-2806
                 URL: http://jira.codehaus.org/browse/JRUBY-2806
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.3
            Reporter: Peter K Chan
            Assignee: Thomas E Enebo


Using JRuby revision 7174 (July 15), when compiling some version of 
ActiveRecord ahead of time and loading it at runtime from a JAR, sometimes a 
collision warning is generated:

{quote}
WARNING: while creating new bindings, found an existing binding; likely a 
collision: 
active_record.connection_adapters.abstract.schema_definitionsInvokermethod__13$RUBY$string_to_timeFixed1
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java:1206)
        at 
org.jruby.internal.runtime.methods.InvocationMethodFactory.tryClass(InvocationMethodFactory.java:1197)
        at 
org.jruby.internal.runtime.methods.InvocationMethodFactory.getCompiledMethod(InvocationMethodFactory.java:203)
        at 
org.jruby.internal.runtime.methods.CompiledMethod$LazyCompiledMethod.initializeMethod(CompiledMethod.java:63)
        at 
org.jruby.internal.runtime.methods.CompiledMethod$LazyCompiledMethod.isCallableFrom(CompiledMethod.java:164)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.methodMissing(CallSite.java:251)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:141)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:384)
<snip>
{quote}

The warning happens occasionally but the application seems to functional 
normally with no ill effect. For reference purpose, here is the method 
definition from that version of the file:

{noformat}
def self.string_to_time(string)
    return string unless string.is_a?(String)
    time_hash = Date._parse(string)
    #rest of code skipped...
{noformat}

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