[ 
https://issues.apache.org/jira/browse/FELIX-1538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749400#action_12749400
 ] 

Thomas Diesler edited comment on FELIX-1538 at 8/31/09 1:09 AM:
----------------------------------------------------------------

I updated to revision 809474.

Yes, the class is loaded from the system classloader

testLoadClass(org.jboss.test.osgi.jbosgi142.OSGI142TestCase)  Time elapsed: 
1.066 sec  <<< FAILURE!
java.lang.AssertionError: ClassNotFoundException expected for: 
jbosgi142-bundleX loads org.jboss.test.osgi.jbosgi142.bundleA.BeanA
Loaded from sun.misc.launcher$appclassloa...@2bbd86
        at org.junit.Assert.fail(Assert.java:92)
        at 
org.jboss.test.osgi.jbosgi142.OSGI142TestCase.assertBundleLoadClass(OSGI142TestCase.java:106)
        at 
org.jboss.test.osgi.jbosgi142.OSGI142TestCase.testLoadClass(OSGI142TestCase.java:82)

This should not happen, right?

      was (Author: tdiesler):
    I can confirm that this is fixed in revision 809474.

Previously, I was running against a snapshot from 17-Aug-2009

http://snapshots.jboss.org/maven2/org/apache/felix/org.apache.felix.framework/1.9.0-SNAPSHOT/org.apache.felix.framework-1.9.0-20090817.122632-4.jar




  
> Exporter can load classes from importer
> ---------------------------------------
>
>                 Key: FELIX-1538
>                 URL: https://issues.apache.org/jira/browse/FELIX-1538
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.0
>            Reporter: Thomas Diesler
>         Attachments: jbosgi142-bundleA.jar, jbosgi142-bundleB.jar, 
> jbosgi142-bundleX.jar
>
>
> A imports X
> B imports X
> Can X load a class from A or B?
> Can A load a class from B and vice versa?
> testLoadClass(org.jboss.test.osgi.jbosgi142.OSGI142TestCase) Time elapsed: 
> 1.743 sec <<< FAILURE!
> java.lang.AssertionError: ClassNotFoundException expected for: 
> jbosgi142-bundleX loads org.jboss.test.osgi.jbosgi142.bundleA.BeanA
> at org.junit.Assert.fail(Assert.java:92)
> at 
> org.jboss.test.osgi.jbosgi142.OSGI142TestCase.assertBundleLoadClass(OSGI142TestCase.java:105)
> at 
> org.jboss.test.osgi.jbosgi142.OSGI142TestCase.testLoadClass(OSGI142TestCase.java:83)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to