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

Javac incorrectly allows receiver parameters in annotation methods

    Details

    • Subcomponent:
    • Resolved In Build:
      b161
    • Verification:
      Verified

      Backports

        Description

        Receiver parameters are not allowed in annotation methods. Javac should produce an error

        @interface MethodRun {
            int value(MethodRun this);
        }

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vromero Vicente Arturo Romero Zaldivar
                  Reporter:
                  vrudomet Victor Rudometov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: