Add a new lint option,
javac to warn about reliance on a default constructor in a class that is part of a formal API.
While convenient for informal classes, default constructors in formal API classes will not have javadoc and may be unintended and unwanted.
Warn about reliance on a default constructor on classes where there is some likelihood of it being a problem, name public classes in a named package that has an unqualified export from its module. In addition, for nested classes, all the syntactically enclosing classes must be public too.
New text displayed as a key for
missing-explicit-ctor Warn about missing explicit constructors in public classes in exported packages.