Proposal: #CompileTimeDependences: `requires static`

Sander Mak sander.mak at luminis.eu
Fri Jul 1 08:41:19 UTC 2016


>> requires & consumes exports & contains
> 
> So it would look as follows:
> 
> 	module com.xyz {
> 		requires guava;
> 		requires joda;
> 		consumes hibernate;
> 		exports com.xyz.a;
> 		exports com.xyz.b;
> 		contains com.xyz.c;
> 	}
> 

Going down this route, I would avoid 'consumes' since IMO it appears to be the inverse of 'provides' used with services. Also, the the proposed 'contains' seems to be equivalent to what is now called 'conceals' (when looking at output of for example `java -listmods:java.base`), which I find to be more descriptive. Or did you mean that 'contains' replaces 'exports dynamic'? In that case, I don't really see how that's any clearer.


Sander





More information about the jpms-spec-observers mailing list