Proposal: #ExportAnnotation

mark.reinhold at mark.reinhold at
Mon Mar 6 17:19:25 UTC 2017

Issue summary

  #ExportAnnotation -- Define a standard, source-retention `Export`
  annotation which can be used in a `` file to indicate
  that the package is to be exported.  Tools that create
  `` files could then interpret this annotation in order
  to generate corresponding `exports` clauses.  [1]


Do not implement this feature.

The declaration of a module is centralized in a single file in order to
make it easy to see exactly what a module exports, requires, uses, and so
forth.  Distributing package-export information across a module's
`` files would just make the related ``
file more difficult to read.  This is not a practice that we should

If someone really wants to do this then they can easily define their own
annotation for this purpose.


More information about the jpms-spec-experts mailing list