Review request on the optional modules support
Alan Bateman
Alan.Bateman at oracle.com
Tue Aug 9 06:29:01 PDT 2011
Jesse Glick wrote:
> On 08/08/2011 08:33 PM, Mandy Chung wrote:
>>> ...should Class and Package be in java.lang.reflect...
>>
>> I too wonder about the inconsistency.
>
> Do you have any ambition to make java.lang.reflect be an optional
> module? (This would require Object.getClass() to throw
> ModuleNotPresentException.)
No, there isn't anything in the current requirements for this. It's not
clear to me that putting reflection into its own module would even be
feasible or rather I'm not sure that anything useful could run without
java.lang.Class being present (java.lang.Class needs to loaded early in
the VM startup and it implements several types defined in
java.lang.reflect, etc.).
-Alan
More information about the jigsaw-dev
mailing list