Issues in "JPMS: Modules in the Java Language and JVM" (2016/12/19)

Remi Forax forax at univ-mlv.fr
Wed Dec 28 07:55:54 UTC 2016


Hi,

----- 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.

regards,
Rémi


More information about the jigsaw-dev mailing list