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

spurious error message for record constructors with receiver parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 14
    • None
    • tools
    • b31

        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.

          1. 8234445
            3 kB
            Vicente Arturo Romero Zaldivar

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

                Created:
                Updated:
                Resolved: