JDK-8250212 : Address reliance on default constructors in the JDK (umbrella)
  • Type: Enhancement
  • Component: core-libs
  • Affected Version: 16
  • Priority: P4
  • Status: Closed
  • Resolution: Other
  • Submitted: 2020-07-23
  • Updated: 2020-09-29
  • Resolved: 2020-07-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8250213 :  
JDK-8250221 :  
JDK-8250237 :  
JDK-8250240 :  
JDK-8250244 :  
JDK-8250246 :  
JDK-8250578 :  
JDK-8250580 :  
JDK-8250583 :  
JDK-8250640 :  
Description
A no-arg public constructor is generated by the compiler for a class if it does not declare an explicit constructor. While convenient, this is inappropriate for many kinds of formal classes, both because the constructor will have no javadoc and because the constructor may be unintended.

For the JDK, classes intended to be used outside of the JDK, public classes in exported packages, should not rely on default constructors.
Comments
All subtasks resolved; closing.
29-07-2020