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

javac allows illegal receiver parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b19
    • Verification:
      Verified

      Backports

        Description

        javac should not allow 'final' as a modifier of a receiver parameter.
        javac should allow only 'this' or 'Foo.this' as the name of a receiver parameter.

        See the mails:
        - http://mail.openjdk.java.net/pipermail/type-annotations-dev/2013-October/001386.html
        - http://mail.openjdk.java.net/pipermail/type-annotations-dev/2013-October/001387.html

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pgovereau Paul Govereau (Inactive)
                Reporter:
                abuckley Alex Buckley
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: