[jsr294-modularity-eg] Runtime model
glyn_normington at uk.ibm.com
Tue Jul 17 05:12:44 EDT 2007
I agree with Bryan. To re-iterate: OSGi bundles will want to exploit
superpackages on Java 7 *and* run unmodified in pre-Java 7 environments.
Bryan Atsatt <bryan.atsatt at oracle.com> wrote on 17/07/2007 01:30:55 AM:
> OSGi bundles.
> The static (dev-time) approach to mapping legacy classes into
> superpackages should be sufficient for 277 modules, since these modules
> will only run on Java 7.
> However, OSGi bundles do not have this restriction. So a developer would
> have to create a special version of the bundle to run on Java 7; hence
> the build/support/distribution complexity.
> 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.
> And, given such a facility, 277 may choose to use it rather than require
> new tooling.
> // Bryan
> Andreas Sterbenz wrote:
> > Bryan Atsatt wrote:
> >> Glyn and I both agreed that the use case is limiting external access
> >> legacy classes in a module. Supporting this at runtime allows the
> >> unmodified legacy classes to continue to run in pre-Java 7
> >> thus simplifying build/support/distribution.
> > By "legacy classes in a module", do you mean JSR 277 module? Since JSR
> > is currently also targeted for JDK 7, a JSR 277 module will not run on
> > 6 regardless of superpackages (unless potentially as a plain JAR file,
> > which would largely defeat the purpose of making it a module).
> > Or which other deployment mechanism are you thinking of?
> > Andreas.
> > _______________________________________________
> > jsr294-modularity-eg mailing list
> > jsr294-modularity-eg at cs.oswego.edu
> > http://cs.oswego.edu/mailman/listinfo/jsr294-modularity-eg
> jsr294-modularity-eg mailing list
> jsr294-modularity-eg at cs.oswego.edu
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jsr294-modularity-eg