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

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

Karl,

I've got an implementation that supports Android using PathClassLoader. There's 
a couple of nice improvements over the 5.6.10 implementation. An android bundle 
only requires the classes.dex file in it.  The 5.6.10 had required the 
presences of the .java classes even though Android can't use them.  That 
basicly double, the size of the jar and it wasn't necessary.  It's perfectly 
fine to include them, in which case the same bundle can be used for both java 
vm or Dalvik vm, but for size considerations, most people probably don't want 
to do that.  The new implementation also supports native code. I'll explain how 
that works in some notes when I hand off the implementation.  Class loading 
resolution for android should also be a lot faster.  The attempt to load a 
class was tacked onto the end of a series of checks that all would fail until a 
final check was done to see if the JarBundle was a dex implementation.  The new 
implementation doesn't go through those unnecessary checks.  The new 
implementation does not add any real performance penalty to the existing java 
vm implementation.  In addition the implementation does not affect the 
processing of existing java vm implementation.

I'm just completing some final tesing, cleaning and putting together some 
implementation notes. {color:#333333}  You should contact me so we can 
coordinate the hand off.  {color}I will say, I learned a lot about the Felix 
implementation in doing this exercise.

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