8256266: Binding variables don't correctly support declaration annotations and the final modifier #78
8256266: Binding variables don't correctly support declaration annotations and the final modifier #78lahodaj wants to merge 8 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into |
|
|
|
Changes look good (already reviewed in openjdk/jdk#1192) |
|
@lahodaj 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 157 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. ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
@lahodaj Since your change was applied there have been 157 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 4ffbe84. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
[This is a copy of https://github.com/openjdk/jdk/pull/1192, but filled against the JDK 16 branch.]
Basically, javac does not handle code like this properly:
The parser needs to allow declaration annotations on binding variables, see:
http://cr.openjdk.java.net/~gbierman/jep394/jep394-20201012/specs/patterns-instanceof-jls.html#jls-14.30.1.1
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk16 pull/78/head:pull/78$ git checkout pull/78