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

Tom Rutchik commented on FELIX-5913:
------------------------------------

Karl,

I've been testing your implementation. It does have a problem resolving classes 
contained in the bundle.  I have to take off early today, but I think I figured 
out the solution.  The BundleClassLoaderDalvik is overriding the loadClass 
method, this breaks the normal classloader delegation model, even for its 
PathClassLoader super class. So it never is using the PathClassLoader's path to 
look for the class in question.  What we can do to address that issue is to add 
a call to super.loadClass in the BundleClassLoaderDalvik's loadClass method. 
I've tried it during at the proper point when I was debugging it and it worked. 
 I'll get that change in there and continue on with a little more testing.

-Tom Rutchik






> Support Android
> ---------------
>
>                 Key: FELIX-5913
>                 URL: https://issues.apache.org/jira/browse/FELIX-5913
>             Project: Felix
>          Issue Type: Wish
>          Components: Framework
>    Affects Versions: framework-6.0.0, framework-6.0.1
>            Reporter: Tom Rutchik
>            Priority: Major
>         Attachments: BundleWiringImpl.java, 
> FelixAndroidSupportImplementationNotes.pdf
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The lastest 6.0.0 and 6.0.1 release no longer works on Android.
> The code form the 5.6.10 version necessary to make it work was not ported 
> into these versions.
> Some code needs to be added to the class BundleWiringImpl class to allow for 
> android support. All of the code necessary to due that can be found in the 
> 5.6.10 version.
> I've added the code and have tested it and it's working fine again.  I've 
> attached an implementation of BundleWiringImpl that works with android. It's 
> basically the 6.0.1 implementation with the extra code from 5.6.10.  You 
> should be able to do a file diff on the 6.0.1 to see where I had to add the 
> missing code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to