Module of a Class?

Sahoo sanjeeb.sahoo at oracle.com
Mon May 21 22:11:34 PDT 2012


On Tuesday 22 May 2012 10:20 AM, Mandy Chung wrote:
> On 5/21/2012 8:38 PM, Sahoo wrote:
>> Is there an API to find out which module a class belongs to? If yes, 
>> what is it?
>>
>
> Class.getModule().  Is that something you are looking for?
>
Yes, I was looking for something of that sort. Now that you told me, I 
see in the actual jigsaw build. I was looking for something like this in 
the javadoc of Class linked from jigsaw javadoc page [1] without 
realizing that the javadocs for non-jigsaw classes actually correspond 
to non-jigsaw builds. Can this be fixed?

Thanks,
Sahoo

[1] http://cr.openjdk.java.net/~mr/jigsaw/api/



More information about the jigsaw-dev mailing list