Fwd: Why can modules not be annotated?
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Mon Mar 21 23:49:55 UTC 2016
2016/3/9 8:50 -0800, pbenedict at apache.org:
> I am proposing a standard set of source retention annotations that
> developers write and tools consume to build the module-info.java
> automatically.
I think I understand your proposal for a javax.tools.Export annotation
for use on packages. The idea there is that a developer could write
@Export in a package-info.java file, and a tool could interpret that to
add an appropriate `exports` directive to a synthesized module-info.java
file.
I'm still confused, however, by your earlier statement
>>> *) Allow annotations on the module to express the custom attributes that
>>> you've spec-ed out.
Who's the "you" in this sentence? What annotations do you have in mind
here?
> PS: This is a different issue than those who want to annotate statements in
> module-info.java.
Understood.
- Mark
More information about the jpms-spec-comments
mailing list