Integrated: 8239596: PARAMETER annotation on receiver type does not cause error

Guoxiong Li gli at openjdk.java.net
Sat Apr 24 02:20:27 UTC 2021


On Wed, 23 Dec 2020 17:05:51 GMT, Guoxiong Li <gli at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: d87a4c3b
Author:    Guoxiong Li <gli at openjdk.org>
Committer: Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d87a4c3b
Stats:     89 lines in 2 files changed: 87 ins; 1 del; 1 mod

8239596: PARAMETER annotation on receiver type does not cause error

Reviewed-by: vromero

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

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


More information about the compiler-dev mailing list