Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-11 Thread Richard S.Hall
On Jun 11, 2007, at 8:55 AM, Andy Piper wrote: At 10:23 PM 6/8/2007, Stanley M. Ho wrote: Unless I miss something, this is the main use case that import-by-name would address. Developers can package all the classes related to a feature (e.g. networking, xml, swing, ejb, etc.) into a module, and

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-11 Thread Andy Piper
At 10:23 PM 6/8/2007, Stanley M. Ho wrote: >Unless I miss something, this is the main use case that import-by-name >would address. Developers can package all the classes related to a >feature (e.g. networking, xml, swing, ejb, etc.) into a module, and it >exports (or reexports from other modules) a

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-11 Thread Richard S. Hall
Stanley M. Ho wrote: Andy Piper wrote: ... 1. The ability to express a feature in terms of its constituent packages. Note that import-by-name doesn't really help here since the actual packages are distributed across multiple modules. What I really want is some kind of feature module that exports

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-08 Thread Sam Pullara
Whew. I thought something had gone south. Sam On Jun 8, 2007, at 2:23 PM, Stanley M. Ho wrote: Andy Piper wrote: ... 1. The ability to express a feature in terms of its constituent packages. Note that import-by-name doesn't really help here since the actual packages are distributed across mu

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-08 Thread Stanley M. Ho
Andy Piper wrote: ... 1. The ability to express a feature in terms of its constituent packages. Note that import-by-name doesn't really help here since the actual packages are distributed across multiple modules. What I really want is some kind of feature module that exports these packages to you

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-08 Thread Sam Pullara
My aghast reaction to Andy's mail is that if we aren't solving this simple issue, what is it that we are solving? This use case is far more like what I would want in the real world. If we don't get something out of this JSR and the language JSR that approximates a runtime version of 'gem' (from

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-08 Thread Richard S. Hall
Andy Piper wrote: At 00:53 08/06/2007, Bryan Atsatt wrote: I truly believe that the Java world will be far better served by having 277 support ONLY import-by-package! But there has been this background fear that import-by-package is somehow terribly complex. I can certainly believe that the un

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-08 Thread Andy Piper
At 00:53 08/06/2007, Bryan Atsatt wrote: >I truly believe that the Java world will be far better served by having >277 support ONLY import-by-package! > >But there has been this background fear that import-by-package is >somehow terribly complex. I can certainly believe that the union of all >the O

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-07 Thread Richard S.Hall
On Jun 7, 2007, at 7:53 PM, Bryan Atsatt wrote: [snip] Richard S.Hall wrote: My question below still stands. In general, it seems to me that resolution consists of: 1. Selection of candidate module/bundles based on import declarations. 2. Class space consistency validation (which may narrow

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-07 Thread Bryan Atsatt
[snip] Richard S.Hall wrote: My question below still stands. In general, it seems to me that resolution consists of: 1. Selection of candidate module/bundles based on import declarations. 2. Class space consistency validation (which may narrow the list if multiple choices, or result in a failu

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-06 Thread Stanley M. Ho
Hi Richard, Richard S. Hall wrote: This is definitely true, but this was only introduced in R4 and is still intended to be the exception, not the norm...from my understanding, 277 defined the norm in the opposite direction. Ultimately, if we are making the same assumption, which is that people

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-05 Thread Richard S.Hall
On Jun 5, 2007, at 5:58 PM, Bryan Atsatt wrote: Glyn Normington wrote: *Bryan Atsatt <[EMAIL PROTECTED]>* wrote on 04/06/2007 20:21:29: > Stanley M. Ho wrote: > > Hi Bryan, > > > > I don't think I will have time to response to all your comments this > > week, so my response would focus o

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-05 Thread Bryan Atsatt
Glyn Normington wrote: *Bryan Atsatt <[EMAIL PROTECTED]>* wrote on 04/06/2007 20:21:29: > Stanley M. Ho wrote: > > Hi Bryan, > > > > I don't think I will have time to response to all your comments this > > week, so my response would focus on the import-by-package discussion. > > > > Firs

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-05 Thread Richard S. Hall
Stanley M. Ho wrote: Hi Richard, Richard S.Hall wrote: ... Perhaps so. I am operating off my [possibly dated] recollection that 277 modules explicitly list the classes that they export, which meant that they may expose arbitrary public classes from a package. If this is no longer the case, the

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-05 Thread Glyn Normington
Bryan Atsatt <[EMAIL PROTECTED]> wrote on 04/06/2007 20:21:29: > Stanley M. Ho wrote: > > Hi Bryan, > > > > I don't think I will have time to response to all your comments this > > week, so my response would focus on the import-by-package discussion. > > > > First, the only import dependency we ha

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-05 Thread Glyn Normington
After writing: >I think ResolutionContext doesn't need any detail I remembered the class in the interoperation kernel prototype did have a little detail (but not much): public interface ResolutionContext extends KernelRelated { /** * Notify completion. */ void complete(); }

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-04 Thread Stanley M. Ho
Hi Bryan, Bryan Atsatt wrote: ... Rather than surfacing the import-by-package at the API level, I think we can solve #3 by generalizing the import dependency concept as import-by-name, and this name can be mapped to superpackage-name in JSR 277 and OSGi-bundle-name or OSGi-exported-package-name

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-04 Thread Stanley M. Ho
Hi Richard, Richard S.Hall wrote: ... Perhaps so. I am operating off my [possibly dated] recollection that 277 modules explicitly list the classes that they export, which meant that they may expose arbitrary public classes from a package. If this is no longer the case, then this is fine. The p

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-06-04 Thread Bryan Atsatt
Stanley M. Ho wrote: Hi Bryan, I don't think I will have time to response to all your comments this week, so my response would focus on the import-by-package discussion. First, the only import dependency we have consensus in this EG so far is import-by-module-name (or import-by-superpackage-nam

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Richard S.Hall
On May 31, 2007, at 8:06 PM, Stanley M. Ho wrote: Hi Richard, Richard S.Hall wrote: I don't think I fully understand your concerns around exporting an entire package. As you mentioned, what's get exported in 277 module is in terms of classes and the information is in the module metadata, and I

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Stanley M. Ho
Hi Richard, Richard S.Hall wrote: I don't think I fully understand your concerns around exporting an entire package. As you mentioned, what's get exported in 277 module is in terms of classes and the information is in the module metadata, and I think we can probably determine the packages associ

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Stanley M. Ho
Hi Bryan, I don't think I will have time to response to all your comments this week, so my response would focus on the import-by-package discussion. First, the only import dependency we have consensus in this EG so far is import-by-module-name (or import-by-superpackage-name), and this was also

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Richard S.Hall
Stanley, On May 31, 2007, at 6:35 PM, Stanley M. Ho wrote: Richard S. Hall wrote: ... I am not so sure supporting #3 is as straight forward as you suggest here. Specially, the OSGi modularity layer [for the most part] assumes that packages are atomic units; there is no way to specify that your

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Stanley M. Ho
Hi Richard, Richard S. Hall wrote: ... I am not so sure supporting #3 is as straight forward as you suggest here. Specially, the OSGi modularity layer [for the most part] assumes that packages are atomic units; there is no way to specify that your export or import something smaller than a packag

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Richard S. Hall
Bryan Atsatt wrote: Stanley M. Ho wrote: Glyn Normington wrote: *Bryan Atsatt <[EMAIL PROTECTED]>* wrote on 30/05/2007 07:57:59: ... > So the open issue is the richness of the import "language": must we > support only lowest-common-denominator, or can we do better without > over-complicatin

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Bryan Atsatt
Richard S. Hall wrote: Bryan Atsatt wrote: Stanley M. Ho wrote: Glyn Normington wrote: *Bryan Atsatt <[EMAIL PROTECTED]>* wrote on 30/05/2007 07:57:59: ... > So the open issue is the richness of the import "language": must we > support only lowest-common-denominator, or can we do better wit

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-31 Thread Glyn Normington
Bryan Atsatt <[EMAIL PROTECTED]> wrote on 30/05/2007 19:11:02: > Responses inline, and a few clarifications here (I was a bit tired when > I finished this last night :^)... > > The main point I was trying to make is that resolution must occur within > a specific context, but I don't think my examp

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-30 Thread Bryan Atsatt
Stanley M. Ho wrote: Hi, Glyn Normington wrote: *Bryan Atsatt <[EMAIL PROTECTED]>* wrote on 30/05/2007 07:57:59: ... > So the open issue is the richness of the import "language": must we > support only lowest-common-denominator, or can we do better without > over-complicating the design? >

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-30 Thread Richard S. Hall
On May 30, 2007, at 5:55 PM, Stanley M. Ho wrote: Glyn Normington wrote: *Bryan Atsatt <[EMAIL PROTECTED]>* wrote on 30/05/2007 07:57:59: ... > So the open issue is the richness of the import "language": must we > support only lowest-common-denominator, or can we do better without > over-co

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-30 Thread Stanley M. Ho
Hi, Glyn Normington wrote: *Bryan Atsatt <[EMAIL PROTECTED]>* wrote on 30/05/2007 07:57:59: ... > So the open issue is the richness of the import "language": must we > support only lowest-common-denominator, or can we do better without > over-complicating the design? > > I for one would li

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-30 Thread Bryan Atsatt
Responses inline, and a few clarifications here (I was a bit tired when I finished this last night :^)... The main point I was trying to make is that resolution must occur within a specific context, but I don't think my example APIs showed that well. I was assuming that ImportResolver had a Modul

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-30 Thread Glyn Normington
Bryan Atsatt <[EMAIL PROTECTED]> wrote on 30/05/2007 07:57:59: > Andy Piper wrote: > > At 23:19 25/05/2007, Stanley M. Ho wrote: > >> Anyway, it seems the EG consensus so far is to not add import package > >> support. If any EG member disagrees, please speak up. > > > > Well, it depends on wh

Re: ClassLoader Deadlock fix was: Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-30 Thread Glyn Normington
Adrian <[EMAIL PROTECTED]> wrote on 25/05/2007 12:44:54: > On Thu, 2007-05-24 at 11:00 +0100, Glyn Normington wrote: > > A better approach would be for the Java 7 platform to provide first > > class support for JSR 291. This boils down to standardising the > > experimental class loader deadlock fi

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-30 Thread Bryan Atsatt
Andy Piper wrote: > At 23:19 25/05/2007, Stanley M. Ho wrote: >> Anyway, it seems the EG consensus so far is to not add import package >> support. If any EG member disagrees, please speak up. > > Well, it depends on what the solution for enabling interoperation > with JSR 291 is. > Our requirement

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-29 Thread Richard S. Hall
Hello Stanley, Stanley M. Ho wrote: Richard S. Hall wrote: Agreed, but I think part of the reason that there is an urge to push such features into the core is because there is already feature creep in the core that gives people the impression that we are redefining OSGi modularity, NetBeans mod

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-29 Thread Andy Piper
At 23:19 25/05/2007, Stanley M. Ho wrote: >Anyway, it seems the EG consensus so far is to not add import package >support. If any EG member disagrees, please speak up. Well, it depends on what the solution for enabling interoperation with JSR 291 is. Our requirement is that there must be a solutio

[Fwd: Re: Relationship to JSR 291 [was: Re: Bryan's comments]]

2007-05-25 Thread Stanley M. Ho
This is another repost to sync up the EG observer mailing list. - Stanley Original Message Subject:Re: Relationship to JSR 291 [was: Re: Bryan's comments] Date: Fri, 25 May 2007 17:06:08 +0100 From: Glyn Normington <[EMAIL PROTECTED]> Reply-To: Jav

[Fwd: Re: Relationship to JSR 291 [was: Re: Bryan's comments]]

2007-05-25 Thread Stanley M. Ho
This is another repost to sync up the EG observer mailing list. - Stanley Original Message Subject: Re: Relationship to JSR 291 [was: Re: Bryan's comments] Date: Sat, 26 May 2007 00:25:38 +0900 From: Daniel Leuck <[EMAIL PROTECTED]> Reply-To: Java Community Proce

[Fwd: Re: Relationship to JSR 291 [was: Re: Bryan's comments]]

2007-05-25 Thread Stanley M. Ho
This is another repost to sync up the EG observer mailing list. - Stanley Original Message Subject: Re: Relationship to JSR 291 [was: Re: Bryan's comments] Date: Fri, 25 May 2007 11:01:03 -0400 From: Richard S. Hall <[EMAIL PROTECTED]> Reply-To: Java Community Proce

[Fwd: Re: Relationship to JSR 291 [was: Re: Bryan's comments]]

2007-05-25 Thread Stanley M. Ho
This is another repost to sync up the EG observer mailing list. - Stanley Original Message Subject: Re: Relationship to JSR 291 [was: Re: Bryan's comments] Date: Fri, 25 May 2007 13:45:57 -0700 From: Stanley M. Ho <[EMAIL PROTECTED]> Reply-To: Java Community Proce

[Fwd: Re: Relationship to JSR 291 [was: Re: Bryan's comments]]

2007-05-25 Thread Stanley M. Ho
This is a repost to sync up the EG observer mailing list. - Stanley Original Message Subject: Re: Relationship to JSR 291 [was: Re: Bryan's comments] Date: Fri, 25 May 2007 11:00:16 -0400 From: Richard S. Hall <[EMAIL PROTECTED]> Reply-To: Java Community Proce

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-25 Thread Stanley M. Ho
Hi Richard, Richard S. Hall wrote: Stanley M. Ho wrote: I think we all agreed that the module system defined by JSR 277 does not need to support import package. As far as I am aware (correct me if I'm wrong), all the existing systems support import at the module level, and OSGi is the only one

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-25 Thread Glyn Normington
I haven't lost interest in this thread but I'm going on leave now returning on Wednesday, so please don't misinterpret my silence in the interim. :-) Glyn Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-25 Thread Bryan Atsatt
Let me try to focus this discussion. What I am aiming for here is conceptually simple: Don't force a specific interpretation of the import String in the 277 *API*. So, for example, change: String ImportDependency.getModuleName() to String ImportDependency.getImportName(); Each ModuleSy

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-25 Thread Richard S. Hall
Stanley M. Ho wrote: Hi Bryan, Bryan Atsatt wrote: Let me clarify. It is my assumption that 277 will provide both an API/framework *and* a specific ModuleSystem implementation. And that OSGi will be able to supply another ModuleSystem implementation: 277 API/Framework /

ClassLoader Deadlock fix was: Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-25 Thread Adrian
On Thu, 2007-05-24 at 11:00 +0100, Glyn Normington wrote: > A better approach would be for the Java 7 platform to provide first > class support for JSR 291. This boils down to standardising the > experimental class loader deadlock fix ([1]) Fixing the deadlock just moves the problem. You'll still

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-24 Thread Stanley M. Ho
Hi Bryan, Bryan Atsatt wrote: Let me clarify. It is my assumption that 277 will provide both an API/framework *and* a specific ModuleSystem implementation. And that OSGi will be able to supply another ModuleSystem implementation: 277 API/Framework / \ /

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-24 Thread Stanley M. Ho
Hi Glyn, Glyn Normington wrote: ... A better approach would be for the Java 7 platform to provide first class support for JSR 291. This boils down to standardising the experimental class loader deadlock fix ([1]) and enabling JSR 291 to exploit JSR 277's repositories and JSR 294's superpackages.

Re: Relationship to JSR 291 [was: Re: Bryan's comments]

2007-05-24 Thread Bryan Atsatt
Let me clarify. It is my assumption that 277 will provide both an API/framework *and* a specific ModuleSystem implementation. And that OSGi will be able to supply another ModuleSystem implementation: 277 API/Framework / \ / \ 277ModuleSystem OSGiMod