provides doesn't work?

Mandy Chung mandy.chung at oracle.com
Mon Mar 5 21:37:23 PST 2012


The aliases support ("provides") is not yet implemented.   I'm working 
on a prototype and hopefully will have it ready in a couple of weeks.

Mandy

On 3/5/2012 7:36 PM, Shi Jun Zhang wrote:
> Hi,
>
> Has provides been implemented? I'm trying to require java.base in my 
> module but it has compile error. So i write the following test case:
>
> foo/module-info.java
> module foo {
>     provides bar;
> }
>
> baz/module-info.java
> module baz {
>     requires bar;
> }
>
> I get the error message:
>
> error: Cannot resolve module dependencies using Jigsaw module resolver
>   [baz, foo]: Cannot resolve
> 1 error
>
> If module baz requires foo, the compilation succeeds. Does i 
> misunderstand the provides keyword?
>



More information about the jigsaw-dev mailing list