Re-export and isModulePresent

Alexey Fedorov alexey.x.fedorov at oracle.com
Fri Feb 17 07:45:58 PST 2012


Hello!

Suppose we have the following module structure:

module A @ 1.0 {
     ...
}

module B @ 1.0 {
    ...
     requires public A;
}

module C @ 1.0 {
    ...
     requires B;
}

the following call in any class from module C returns *false*:

getClass().getModule().isModulePresent("A")

Is this behavior correct? In other words, "requires public A" directive 
re-exports *only A's types*, not *module *A?

--
Thank you,
Alexey




More information about the jigsaw-dev mailing list