[jsr294-modularity-eg] Expressing module dependencies
Alex Buckley
Alex.Buckley at Sun.COM
Tue Apr 14 18:58:18 EDT 2009
Alex Buckley wrote:
> Peter Kriens wrote:
>>> What is @Bundle?
>> An annotation ... :-) What else?
>>
>>> What is @Jigsaw? You're missing some import statements, unless you're
>>> proposing that these annotation types are handled specially in the
>>> JLS and javac's name interpretation logic. At that point, they're
>>> basically keywords.
>> Nope, they are standard annotations, I tested it.
>
> I don't understand. Of course Bundle and Jigsaw are annotation types but
> what package are they declared in? How come you're not importing it?
Hmm, I guess they're in an unnamed package. How are you making their
classfiles visible to the compiler? When compiling module-info.java, the
only types visible will be those in modules required by that very
module-info.java. (Unless Bundle.class and Jigsaw.class are on the
bootclasspath and treated specially, which turns them into
pseudo-keywords as I've said before.)
Alex
More information about the jsr294-modularity-eg
mailing list