Issues in "JPMS: Modules in the Java Language and JVM" (2016/12/19)
alex.buckley at oracle.com
Thu Jan 5 20:41:36 UTC 2017
Thanks Ess and Remi for noticing the missing zero for *_index items (and
for the stray ModuleVersion reference).
On 12/27/2016 11:55 PM, Remi Forax wrote:
> ----- Mail original -----
>> De: "Ess Kay" <s.2016.kay at gmail.com>
>> À: jigsaw-dev at openjdk.java.net
>> Envoyé: Mardi 27 Décembre 2016 23:54:06
>> Objet: Issues in "JPMS: Modules in the Java Language and JVM" (2016/12/19)
>> "JPMS: Modules in the Java Language and JVM" at
>> http://cr.openjdk.java.net/~mr/jigsaw/spec/lang-vm.html says the the Module
>> attribute module_version_index and requires_version_index values "must be
>> a valid index into the constant_pool table" which must be a
>> CONSTANT_Utf8_info structure. However, in reality they both appear to
>> optionally have a value of 0. Is this correct?
> yes, it can be 0.
>> Also, the ModuleHashes attribute appears in the Java 9 module-info classes
>> but does not appear in the "JPMS: Modules in the Java Language and JVM".
>> Is this just an oversight?
> this attribute is OpenJDK specific so not part of the JMP spec.
More information about the jigsaw-dev