Hi Tian

I was involved in an effort a few years ago to enforce the Harmony module boundaries using Equinox, which sounds similar to the idea below. The problem with that approach was that we weren't able to restrict Equinox's use of Java to particular Harmony modules and so it was very difficult to bootstrap the system. Also, because of the way Java allows class loading to be deferred in some situations, it was impossible to know when bootstrapping was complete, so the option of bootstrapping in a "permissive" mode and then tightening up the rules later wasn't viable. In the end we concluded that the Harmony module boundaries would best be enforced by native code in the VM and we built a prototype which did just that. Unfortunately, the prototype was never released.

I think you'll find as you get into this work that the main symptom is various kinds of recursive death, such as stack overflow. So if that approach doesn't work out, which I suspect it may not, you might consider taking one of the open source VMs associated with Harmony and building sufficient OSGi support into it for the Harmony modules.

Sorry if this comes across a little negative. I think the objective would be very valuable to achieve and so I wish you well. For example, it would show that OSGi metadata is sufficient to implement Project Jigsaw.

Glyn

On 8 Jun 2009, at 06:57, galaxy wrote:

Hi ,all
I participate this year's google summer code in apache harmony :implementing osgi-ed jre and I want to use felix in my work to organize the modules of
harmony
So I think it's necessary to make you notified here :) and I want to ask
your permission on this .
Regarding to the project , I think I have to make some modification in the
source code in felix ,at least I have to export java.* .
Any rules I have to follow or anything else ,please let me know .
Thanks !

I think I will visit here a lot in this coming summer :)

--
regards
Tian

Reply via email to