JDK 16 RFR of JDK-8071961: Add javac lint warning when a default constructor is created

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri Aug 14 00:44:57 UTC 2020


I personally like this suggestion a lot.

I now realize that my main beef with "exposing" was that, by the time I 
got to it, I half-forgot what caused the "exposing". This more succint 
version rectifies that.

Maurizio

On 12/08/2020 19:14, Alex Buckley wrote:
> compiler.warn.missing-explicit-ctor=\
> class {0} declares no explicit constructors, exposing a default 
> constructor to clients of module {2} 


More information about the compiler-dev mailing list