Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8234445

spurious error message for record constructors with receiver parameters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b31

      Backports

        Description

        this code:

        record R(int i) {
            public R(R this, int i) {
                this.i = i;
            }
        }

        fails with a spurious error message. The error message should be similar to the one for an equivalent class.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vromero Vicente Arturo Romero Zaldivar
                  Reporter:
                  vromero Vicente Arturo Romero Zaldivar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: