provides doesn't work?

Shi Jun Zhang zhangshj at linux.vnet.ibm.com
Mon Mar 5 19:36:38 PST 2012


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?

-- 
Regards,

Shi Jun Zhang





More information about the jigsaw-dev mailing list