hg: jigsaw/jigsaw/jdk: Remove module annotation support
Neal Gafter
neal at gafter.com
Wed Mar 28 17:34:05 PDT 2012
On Fri, Jan 27, 2012 at 2:02 PM, Alex Buckley <alex.buckley at oracle.com>wrote:
> On 1/27/2012 8:12 AM, Jesse Glick wrote:
>
>> On 01/27/2012 10:19 AM, Alan Bateman wrote:
>>
>>> Anything after the module declaration is passed through by the
>>> compiler into the ModuleData attribute.
>>>
>>
>> lang-vm.html [1] does not seem to mention this but perhaps it is too
>> old.
>>
>
> It doesn't mention it because it doesn't need to. The limit of the Java
> language is the CompilationUnit production. A compiler is free to parse
> text outside that production and store it in a ModuleData attribute.
That's interesting. Since the production CompilationUnit can derive the
empty string, the entire source file could be something "outside that
production" and could include text in some other language virtually
identical to Java but with particular interesting extensions, such as AOP
or delegates. If I understand your statement, such a source file is still
a valid Java(TM) Programming Language compilation unit.
Do I have that right?
More information about the jigsaw-dev
mailing list