JDK-8291914 : generated constructors are considered compact when they shouldn't
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 19,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-08-04
  • Updated: 2022-11-14
  • Resolved: 2022-10-20
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 20
20 b21Fixed
Related Reports
Relates :  
Description
Given a declaration like:

record R() {}

javac is considering the generated constructor both canonical and compact, it should only be canonical as there is no explicit compact constructor declaration
Comments
Changeset: 95dd376b Author: Vicente Romero <vromero@openjdk.org> Date: 2022-10-20 14:58:56 +0000 URL: https://git.openjdk.org/jdk/commit/95dd376ba249b9eb8ab40a957238dfd79e60112f
20-10-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10756 Date: 2022-10-19 04:52:29 +0000
19-10-2022