JDK 16 RFR of JDK-8071961: Add javac lint warning when a default constructor is created
Alex Buckley
alex.buckley at oracle.com
Fri Jul 31 16:23:05 UTC 2020
On 7/30/2020 10:39 PM, Joe Darcy wrote:
> PS In the next iteration of the webrev,
>
> http://cr.openjdk.java.net/~darcy/8071961.6
>
> the messages have been updated to
>
> 185 javac.opt.Xlint.desc.missing-declared-ctor=\
> 186 Warn about missing declared constructors in public classes in
> exported packages.
>
> 1763 # 0: symbol, 1: symbol, 2: symbol
> 1764 compiler.warn.missing-declared-ctor=\
> 1765 class {0} in exported package {1} of module {2} does not
> declare any explicit constructors, exposing a default constructor to
> clients
These messages look very good.
Alex
More information about the compiler-dev
mailing list