jdeps -check: add section on exports
Remi Forax
forax at univ-mlv.fr
Wed Mar 23 18:31:54 UTC 2016
In my opinion, it should be a warning (or even an error) in javac,
you should not create a bad module in the first place.
Rémi
----- Mail original -----
> De: "Anthony Vanelverdinghe" <anthony.vanelverdinghe at gmail.com>
> À: jigsaw-dev at openjdk.java.net
> Envoyé: Mercredi 23 Mars 2016 19:26:24
> Objet: jdeps -check: add section on exports
>
> 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