hg: jigsaw/jigsaw/jdk: Remove module annotation support
Alex Buckley
alex.buckley at oracle.com
Fri Jan 27 14:02:31 PST 2012
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.
> Seems I can indeed write
>
> module foo {}
> hibernateconfig "stuff.xml";
> Hi mom!
>
> and that compiles. So, how would such things be checked for syntax or
> semantics? How would different tools avoid clobbering each other's
> metadata?
They won't be checked for syntax or semantics because they're not part
of the Java language or module system. See
http://openjdk.java.net/projects/jigsaw/doc/draft-java-module-system-requirements-12#extensible-module-declarations.
Alex
More information about the jigsaw-dev
mailing list