On 09/02/2017 08:18, Ess Kay wrote:

Remi Forax has explained that the ModuleHashes attribute is "OpenJDK
specific" and so is not part of the JMP spec. Is there an up to date
specification of OpenJDK specific Java 9 class file changes anywhere?
ModuleHashes and ModuleResolution are JDK-specific. I'm not aware of a document where such class file attributes are specified. For now, ModuleHashes is:

     * ModuleHashes_attribute {
* // index to CONSTANT_utf8_info structure in constant pool representing
     *   // the string "ModuleHashes"
     *   u2 attribute_name_index;
     *   u4 attribute_length;
     *
     *   // index to CONSTANT_utf8_info structure with algorithm name
     *   u2 algorithm_index;
     *
     *   // the number of entries in the hashes table
     *   u2 hashes_count;
     *   {   u2 module_name_index (index to CONSTANT_Module_info structure)
     *       u2 hash_length;
     *       u1 hash[hash_length];
     *   } hashes[hashes_count];
     *
     * }

-Alan

Reply via email to