jdeps -check: add section on exports

Anthony Vanelverdinghe anthony.vanelverdinghe at gmail.com
Wed Mar 23 18:26:24 UTC 2016


Hi

It would be great if jdeps -check would also have a section on exports: 
this section would list non-exported packages which contain types that 
are exposed (e.g. through method signatures) by exported packages. 
Ideally, those appearances should be listed under each package, i.e.:

com.foo.impl
     type X is exposed by member Y of exported type Z

Using this, one could easily see whether the package should indeed be 
exported, or whether a method was mistakenly made public, or ...

JDK-8147050 already mentions the similar case of checking whether or not 
a "requires" ought to be public.

What do you think? Should I file an issue for this?

Kind regards,
Anthony


More information about the jigsaw-dev mailing list