Stefan Saasen created JRUBY-6519:
------------------------------------

             Summary: OSGiBundleClassLoaderHelper throws ClassCastException in 
the #internalGetFelixBundleClassLoader(Bundle) method 
                 Key: JRUBY-6519
                 URL: https://jira.codehaus.org/browse/JRUBY-6519
             Project: JRuby
          Issue Type: Bug
          Components: Embedding
    Affects Versions: JRuby 1.6.6
         Environment: org.apache.felix.frameworkversion: 3.0.2

            Reporter: Stefan Saasen


In line 161 the module list gets cast to an Object array but is in fact an 
instance of {{java.util.ArrayList}} resulting in a CCE.

{code}
161: Object[] moduleArray = 
(Object[])Felix_BundleImpl_m_modules_field.get(bundle);
{code}

Stacktrace:
{code}
[INFO] [talledLocalContainer] java.lang.ClassCastException: java.util.ArrayList 
cannot be cast to [Ljava.lang.Object;
[INFO] [talledLocalContainer]   at 
org.jruby.embed.osgi.utils.OSGiBundleClassLoaderHelper.internalGetFelixBundleClassLoader(OSGiBundleClassLoaderHelper.java:161)
[INFO] [talledLocalContainer]   at 
org.jruby.embed.osgi.utils.OSGiBundleClassLoaderHelper.getBundleClassLoader(OSGiBundleClassLoaderHelper.java:110)
[INFO] [talledLocalContainer]   at 
org.jruby.embed.osgi.internal.JRubyOSGiBundleClassLoader.addBundle(JRubyOSGiBundleClassLoader.java:103)
[INFO] [talledLocalContainer]   at 
org.jruby.embed.osgi.internal.JRubyOSGiBundleClassLoader.<init>(JRubyOSGiBundleClassLoader.java:78)
[INFO] [talledLocalContainer]   at 
org.jruby.embed.osgi.OSGiScriptingContainer.<init>(OSGiScriptingContainer.java:86)
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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