Proposal: #ClassFileAccPublic

Remi Forax forax at univ-mlv.fr
Wed Jul 6 16:23:52 UTC 2016


ACC_TRANSITIVE looks fine to me,
even if it really means transitive at one hop only.

Rémi

----- Mail original -----
> De: "Mark Reinhold" <mark.reinhold at oracle.com>
> À: jpms-spec-experts at openjdk.java.net
> Envoyé: Mercredi 6 Juillet 2016 17:32:36
> Objet: Proposal: #ClassFileAccPublic
> 
> Issue summary
> -------------
> 
>   #ClassFileAccPublic --- The `ACC_PUBLIC` constant in a `requires_flags`
>   should be encoded as `0x0001`, as it is elsewhere in the JVMS, rather
>   than as `0x0020`, which has different meanings in other contexts.
> 
> Proposal
> --------
> 
> Unlike the other `ACC_PUBLIC` constants, this constant does not express
> an access mode but, rather, the addition of an implied transitive
> readability edge from modules that depend upon this module to some other
> module required by this module.  To avoid confusion at the class-file
> level, rename this constant to `ACC_TRANSITIVE`.
> 
> (Whether the syntax of module declarations should use a keyword other
>  than `public` for this purpose would be a separate issue.)
> 
> 
> [1] http://openjdk.java.net/projects/jigsaw/spec/issues/#ClassFileAccPublic
> 


More information about the jpms-spec-experts mailing list