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:
Hi,

----- Mail original -----
De: "Ess Kay" <s.2016....@gmail.com>
À: jigsaw-dev@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.

regards,
Rémi

Reply via email to