8306698: Add overloads to MethodTypeDesc::of#13599
8306698: Add overloads to MethodTypeDesc::of#13599liach wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back liach! A progress list of the required criteria for merging this PR into |
Webrevs
|
src/java.base/share/classes/java/lang/constant/MethodTypeDesc.java
Outdated
Show resolved
Hide resolved
|
Please review this patch, adding two factory methods for MethodTypeDesc for convenience. Thank you! |
|
Can any developer for the constant API area take a look at this patch? This API enables sharing of immutable list for method type symbols. |
|
@mlchung Since you appear to be back, can you review this patch that allows future immutable-list parameter type sharing and benefit the Classfile API for JDK 21? I would be grateful if you can review a few other java.lang.invoke improvements I submitted as well. |
|
yes, I'm back from vacation. This change looks fine. Can you update the copyright header to 2023? |
|
What is the plan for https://git.openjdk.org/jdk/pull/13186? It seems that keeping |
|
I plan to keep it. Migration to an immutable list to optimize |
The copyright year was already updated to 2023 when covariant override for |
|
@liach 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 486 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 (@mlchung) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/integrate I shall integrate this improvement, so that I can provide patches that:
All of these can benefit the Classfile API. |
|
/sponsor |
|
Going to push as commit 8ffa264.
Your commit was automatically rebased without conflicts. |
Please review this patch adding two new convenience methods that allows easier access to MethodTypeDesc instances and its associated CSR as well. This is a necessity to allow #13186 to reduce array copies in a few scenarios; the implementation of the two methods will be updated there.
Javadoc: https://cr.openjdk.org/~liach/8306698/1/java.base/java/lang/constant/MethodTypeDesc.html
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13599/head:pull/13599$ git checkout pull/13599Update a local copy of the PR:
$ git checkout pull/13599$ git pull https://git.openjdk.org/jdk.git pull/13599/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13599View PR using the GUI difftool:
$ git pr show -t 13599Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13599.diff
Webrev
Link to Webrev Comment