Proposal: #ClassFileAccPublic

Paul Benedict pbenedict at apache.org
Mon Jul 11 20:10:57 UTC 2016


Remi, what do you think of preserving ACC_MODULE so that classes which are
exported are flagged with it? It would be an easy way for clients to
inspect a type and see if a type was exported.

Cheers,
Paul

On Wed, Jul 6, 2016 at 11:23 AM, Remi Forax <forax at univ-mlv.fr> wrote:

> 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-observers mailing list