[jsr294-modularity-eg] Runtime model

Andreas Sterbenz Andreas.Sterbenz at Sun.COM
Tue Jul 17 23:45:11 EDT 2007


Bryan Atsatt wrote:
> 
> If the superpackage mapping could be done dynamically, then the OSGi 
> runtime can take the burden from the developer, layering a superpackage 
> over the legacy classes only when on Java 7.

This is a fine requirement. There should be nothing in the spec to prevent 
OSGi from doing that and there is nothing in the current proposal that does.

The question is whether a mechanism that allows modifying legacy classes 
should be part of the JSR 294 spec that every JDK and JVM implementation 
has to implement or if this is something that can be left up to OSGi. 
Given that language/VM spec changes have an extremely high cost and that 
there are many more JVM implementations than OSGi implementations, it 
would be cheaper to leave it to OSGi.

Andreas.


More information about the jsr294-modularity-eg mailing list