8300543 Compiler Implementation for Pattern Matching for switch#13074
8300543 Compiler Implementation for Pattern Matching for switch#13074lahodaj wants to merge 45 commits intoopenjdk:masterfrom
Conversation
…arse errors when deconstructing a record using the enhanced for loop of JEP 432" This reverts commit 2cb64a7
…parenthesized-patterns
|
👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into |
|
@lahodaj |
| * If no element in the {@code labels} array matches the target, then | ||
| * the method of the call site return the length of the {@code labels} array. | ||
| * <p> | ||
| * The value of the {@code restart} index must be between {@code 0} and |
There was a problem hiding this comment.
This description is a bit ambiguous - not clear whether it's 0 < x < length, or 0 <= x < length.
mcimadamore
left a comment
There was a problem hiding this comment.
Added some comments in the exhaustiveness test
There was a problem hiding this comment.
Isn't Isn't testCoversType1the same astestExhaustiveStatement3` ?
There was a problem hiding this comment.
Some of the tests called testExhaustiveStatement do not seem to test statements at all
There was a problem hiding this comment.
In the two testXYZExhaustiveIntersection the class hierarchy seems the same - can we reuse it across multiple test cases? I see something similar done in testOnlyApplicable.
There was a problem hiding this comment.
The name testX doesn't seem very expressive - maybe testRecords ?
|
@lahodaj this pull request can not be integrated into git checkout JDK-8300543
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
|
@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 135 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 |
vicente-romero-oracle
left a comment
There was a problem hiding this comment.
minor comment, looks good
| * @bug 8297602 | ||
| * @summary Compiler crash with type annotation and generic record during pattern matching | ||
| * @compile -XDrawDiagnostics T8297602.java | ||
| * @compile/fail/ref=T8297602.out -XDrawDiagnostics T8297602.java |
There was a problem hiding this comment.
I think that this test can be eliminated as new test AnnotationErrors supersedes it.
|
/contributor add @biboudis |
|
@lahodaj |
|
/inetgrate |
|
@lahodaj Unknown command |
|
/integrate |
|
Going to push as commit eaa80ad.
Your commit was automatically rebased without conflicts. |
This is the first draft of a patch for JEP 440 and JEP 441. Changes included:
This change herein also includes removal record patterns in for each loop, which may be split into a separate PR in the future.
/issue JDK-8300545
Progress
Issues
Reviewers
Contributors
<abimpoudis@openjdk.org>Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13074/head:pull/13074$ git checkout pull/13074Update a local copy of the PR:
$ git checkout pull/13074$ git pull https://git.openjdk.org/jdk.git pull/13074/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13074View PR using the GUI difftool:
$ git pr show -t 13074Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13074.diff
Webrev
Link to Webrev Comment