JDK-8027886 : javac allows illegal receiver parameters
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8u20
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-11-05
  • Updated: 2014-07-29
  • Resolved: 2014-06-11
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 8 JDK 9
8u20Fixed 9 b19Fixed
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