On 5/6/2017 10:13 AM, 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.
To clarify, you are referring to the Public Review Specification of JSR 376.
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."
That sentence contains a hyperlink to Chapter 2 of the document "JPMS: Modules in the Java Language and JVM". This document is a normative part of the Public Review Specification, so the class file format supported by Java SE 9 is the union of the JVMS9 draft + the document's Chapter 2.
As to precisely how Chapter 2 will affect the final JVMS9 in Java SE 9, the document clearly states: "The sections below will contribute to chapter 4 of JVMS9."
Makes me wonder, if this is still work in progress?
As Alan noted, the class file changes are stable. Alex