module-info hygiene

Remi Forax forax at univ-mlv.fr
Mon Oct 17 11:06:59 UTC 2016


The compiler can not detect dead code because it can be a library.
jlink can detect dead code and provide a list of unneeded modules because it has the view of the whole application. 

Rémi 

On October 17, 2016 10:45:26 AM GMT+02:00, Andrew Haley <aph at redhat.com> wrote:
>On 16/10/16 19:52, Robert Scholte wrote:
>
>> To enforce the discipline, the java compiler should IMHO at least
>> check if all required modules are indeed required and if the
>> transitive required modules are indeed transitive.
>
>How can the compiler possibly know this?  There are ways of requiring
>a module without naming it in a declaration.
>
>Andrew.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


More information about the jigsaw-dev mailing list