8179187: Misleading compilation error on annotated fully-qualified classname#30672
8179187: Misleading compilation error on annotated fully-qualified classname#30672dbalek wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back dbalek! A progress list of the required criteria for merging this PR into |
|
@dbalek This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 17 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@lahodaj, @vicente-romero-oracle) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
lahodaj
left a comment
There was a problem hiding this comment.
Seems good to me. I think it would be good to get another review for this.
/reviewers 2
Consider the following code snippet:
While the error reported for the line with the
f1declaration correctly mentions the root case of the problem which is an incorrectly placed type annotationthe error reported for the similar problem on the line with the
f2declaration is different and quite misleadingCloser observation shows that the correct error message would be reported also for the later line but its printing is suppressed due to existing error already printed on the same position.
The proposal here is:
Prevent reporting of the
ResolveErrorwhile attributing theJCAnnotatedType.underlayingType(by not strictly requiring the attribution result to be a type) and allow for a better error message to be displayed later when validating annotations.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30672/head:pull/30672$ git checkout pull/30672Update a local copy of the PR:
$ git checkout pull/30672$ git pull https://git.openjdk.org/jdk.git pull/30672/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 30672View PR using the GUI difftool:
$ git pr show -t 30672Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30672.diff
Using Webrev
Link to Webrev Comment