RFR: 8239596: PARAMETER annotation on receiver type does not cause error [v2]

Guoxiong Li gli at openjdk.java.net
Fri Apr 23 11:15:11 UTC 2021


> Hi all,
> 
> `TypeAnnotationsValidator::visitMethodDef`  uses `checkForDeclarationAnnotations` incorrectly so that the check could not work as expected and some related errors are not reported. This patch fixes it and adds a corresponding test case.
> 
> Thank you for taking the time to review.
> 
> Best Regards.

Guoxiong Li has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Use meaningful class name and update copyright
 - Merge branch 'master' into JDK-8239596
 - 8239596: PARAMETER annotation on receiver type does not cause error

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1881/files
  - new: https://git.openjdk.java.net/jdk/pull/1881/files/a3b59573..760685a8

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1881&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1881&range=00-01

  Stats: 379785 lines in 8965 files changed: 199458 ins; 123557 del; 56770 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1881.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1881/head:pull/1881

PR: https://git.openjdk.java.net/jdk/pull/1881


More information about the compiler-dev mailing list