Issue with qualified exports

Paul Benedict pbenedict at apache.org
Wed Jul 20 22:07:58 UTC 2016


My build is build 9-ea+125-2016-07-08-164610.javare.5260.nc

Currently I am writing a module that another team will consume. Let's just
call these modules A and B. Module A must export its packages to Module B
and B alone.

For reasons beyond my control, I do not have access to Module B. However, I
don't need to consume any types from B or use B in anyway -- just need to
give package visibility to B. So the compiler is stopping me because it
says "error: module not found". Yes, the compiler is right... but it's too
right.

What do you think of loosening the compiler restriction here? I don't see a
reason why the export target must be known at this point.

PS: I don't know if the same thing is checked at runtime, but A should be
able to be loaded without B, too.

Cheers,
Paul


More information about the jigsaw-dev mailing list