Review request: module-info class file update

Mandy Chung mandy.chung at oracle.com
Fri Feb 3 12:52:48 PST 2012


Jon and I are working together to update javac and runtime per the 
latest language and class file specification for module declaration 
[1].   Key changes include:

1. ModuleRequires attribute and ModuleProvides attribute
     - use u4 flags and add SYNTHESIZED flag
2. new CONSTANT_ModuleQuery_info
3. exports <a package name>
4. default platform module is "jdk.base"
     - will switch to "java.base" when the alias support is implemented
5. The jar tool synthesizes "requires jdk.jre" in the generated module-info
    that is the entire JRE.  If the legacy jar requires other modules, 
it requires
    to define its dependences properly.

Webrev at:
    http://cr.openjdk.java.net/~mchung/jigsaw/webrevs/jvms-update.00/

Thanks
Mandy
[1] http://openjdk.java.net/projects/jigsaw/doc/lang-vm.html

P.S. There is one javac failure we are currently diagnosing.  I will 
send a separate review for that issue once we resolve it as I believe 
it's fairly isolated one.



More information about the jigsaw-dev mailing list