babylon
babylon copied to clipboard
8337162: Support primitives in patterns
Support primitives in patterns
Progress
- [x] Change must not contain extraneous whitespace
Issue
- JDK-8337162: Support primitives in patterns (Task - P4)
Reviewing
Using git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/babylon.git pull/246/head:pull/246
$ git checkout pull/246
Update a local copy of the PR:
$ git checkout pull/246
$ git pull https://git.openjdk.org/babylon.git pull/246/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 246
View PR using the GUI difftool:
$ git pr show -t 246
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/babylon/pull/246.diff
Webrev
:wave: Welcome back mabbay! A progress list of the required criteria for merging this PR into code-reflection will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.
@mabbay 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:
8337162: Support primitives in patterns
Reviewed-by: psandoz
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 1187 new commits pushed to the code-reflection branch:
- b5ef3448d0a9847fe47ab84f64e335629ea8a316: Simplified maven copy to build dir
- f928e7be46d569b2567015002ff1abd2b6fa7f7d: Exception regions patch
- d04447d4b0aa9cb0eca60a6758f6e38edcaa77a4: Unreachable method or lambda exit
- f4a8b2d9e00ea5fe0e598727b142bfd9888430fd: Added OpWrapper for CoreOp.NegOp (needed for blackscholes)
- 09bd0bbc38441646d5e74d97669a57e5b4349e3a: Bldr provides access to jextract
- de2faf947c3bb32ea4417352317e836738055dbc: Ensure exception region exits are generated
- c750ca89ffc2c96f1202ee9787393890df8be3f2: Cleanup cmake handoff from maven and from bldr
- 9343454b24770d13b5a1cbfd7b08fcc2be14c7d5: Captured constants in variables
- 8a8e5b2f52810a4b547c334423a441d4227c1855: Simplify code generation for quotable lambdas not to require duplicate capture argument lists
- cfffc996fcc25f61f376c3d41a7774e59557bea5: 8337161: Support record pattern for generic records
- ... and 1177 more: https://git.openjdk.org/babylon/compare/971b90fa70eaa31810d3658f2f689c2b1ea4c4be...code-reflection
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 code-reflection branch, type /integrate in a new comment.
Webrevs
- 13: Full - Incremental (ef931463)
- 12: Full - Incremental (557b3e87)
- 11: Full - Incremental (9fe2a5a5)
- 10: Full - Incremental (74aed589)
- 09: Full - Incremental (4aa99751)
- 08: Full - Incremental (86baf4d3)
- 07: Full - Incremental (42fad6b0)
- 06: Full - Incremental (0fc7b89e)
- 05: Full - Incremental (b8500077)
- 04: Full - Incremental (622612a0)
- 03: Full - Incremental (60c5f55f)
- 02: Full - Incremental (962e94cc)
- 01: Full - Incremental (14150aed)
- 00: Full (c31e5e95)
You need to add test for all the primitive types.
What about
i instanceof Integer _andi instanceof Number _will you address that in this PR a subsequent PR?
I will add more tests
We will support other kind of conversions in a subsequent PR.
/integrate
Going to push as commit 853cb64b501b64c78e13526182b9b8578f2b077f.
Since your change was applied there have been 1187 commits pushed to the code-reflection branch:
- b5ef3448d0a9847fe47ab84f64e335629ea8a316: Simplified maven copy to build dir
- f928e7be46d569b2567015002ff1abd2b6fa7f7d: Exception regions patch
- d04447d4b0aa9cb0eca60a6758f6e38edcaa77a4: Unreachable method or lambda exit
- f4a8b2d9e00ea5fe0e598727b142bfd9888430fd: Added OpWrapper for CoreOp.NegOp (needed for blackscholes)
- 09bd0bbc38441646d5e74d97669a57e5b4349e3a: Bldr provides access to jextract
- de2faf947c3bb32ea4417352317e836738055dbc: Ensure exception region exits are generated
- c750ca89ffc2c96f1202ee9787393890df8be3f2: Cleanup cmake handoff from maven and from bldr
- 9343454b24770d13b5a1cbfd7b08fcc2be14c7d5: Captured constants in variables
- 8a8e5b2f52810a4b547c334423a441d4227c1855: Simplify code generation for quotable lambdas not to require duplicate capture argument lists
- cfffc996fcc25f61f376c3d41a7774e59557bea5: 8337161: Support record pattern for generic records
- ... and 1177 more: https://git.openjdk.org/babylon/compare/971b90fa70eaa31810d3658f2f689c2b1ea4c4be...code-reflection
Your commit was automatically rebased without conflicts.
@mabbay Pushed as commit 853cb64b501b64c78e13526182b9b8578f2b077f.
:bulb: You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.