Questions about jigsaw API
Mike Ershov
mikhail.ershov at oracle.com
Wed Jan 25 05:58:42 PST 2012
Alan Bateman wrote:
> On 24/01/2012 13:37, Mike Ershov wrote:
>> Hello,
>>
>> I'm adapting sigtest tool ( sigtest.java.net ) to jigsaw and have
>> some questions about jigsaw API:
>>
>> 1) I need to read class bytes for any particular class and all its
>> dependencies. In other words for module com.acme.mod at 3.1 I have to
>> analyze com.acme.mod at 3.1's classes, their superclasses from other
>> com.acme.* modules recursively and their platform superclasses including
>> java.lang.Object. Maybe I missed something but I can't find easy way to
>> do it. So I resolve all dependencies manually. This is my the main
>> question. I very appreciate any recommendations.
> Does com.acme.mod at 3.1 have an entry point? -- just asking that as
> maybe all you need to do is read its configuration and that will give
> you the set of contexts and in turn the set of modules. Alternatively
> you can run the resolver and generate the configuration (which may be
> what you are doing now?).
Thanks Alan, this is the answer I was looking for!
>
>>
>> 4) I noticed that public org.openjdk.jigsaw.LoaderPool has no public
>> constructors. If there is no reasons for such design it's better to do
>> it not public ( like LibraryPool ) or make them all public.
> Can you explain what you are looking to do?
I was exploring org.openjdk.jigsaw API and noticed that two public
classes, LoaderPool and Loader (because its constructor accepts
LoaderPool as parameter) can not be used as public.
More information about the jigsaw-dev
mailing list