On 06/05/2017 18:13, Stephan Herrmann wrote:

I just happened to search for the specification of the class file
representation of modules. I was quite surprised to find nothing in JVMS.

Then I found:
"The changes to the class-file chapter in support of module declarations
 are not included in this draft of the JVMS; they will be included in
 a future version of this specification."

Makes me wonder, if this is still work in progress?

Anyway, please don't forget :)
Are you able to use the "JPMS: Modules in the Java Language and JVM" (lang-vm.html) document? The second section is "Modules in the JVM" which provides the details on the binary form of a module declaration and also a summary of what will be updated in the JVMS.

I checked the lang-vm.html document in the JCP submission and it's the same version of the document (2017/2/23 15:27 -0800 [9d1c4ba194e3]) that is linked from the Project Jigsaw page. The class file changes matches the current EA downloads too. The updated `javap` in JDK 9 is probably useful to you as it can dissemble a module-info.class. Also its `-v` option should allow to quickly look at the Module* attributes and the constant pool.

-Alan

Reply via email to