Skip to content

Conversation

liach
Copy link
Member

@liach liach commented Nov 3, 2023

Please review a patch that migrates Class::getEnclosingMethod and Class::getEnclosingConstructor's descriptor parsing from old generic utilities to more simple utilities from java.lang.invoke implementation. This will help migrate away from the old generic repositories in the future.

The getClassLoader() call plus

return Class.forName(name, false, loader);

should be functionally equivalent to the previous getDeclsLoader()
private ClassLoader getDeclsLoader() {
if (decl instanceof Class<?> c) {return c.getClassLoader();}
if (decl instanceof Method m) {
return m.getDeclaringClass().getClassLoader();
}
assert decl instanceof Constructor : "Constructor expected";
return ((Constructor<?>) decl).getDeclaringClass().getClassLoader();
}

plus
try {return Class.forName(name, false, // don't initialize
getDeclsLoader());}


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8319386: Migrate Class::getEnclosingMethod/Constructor away from old generic utilities (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16496/head:pull/16496
$ git checkout pull/16496

Update a local copy of the PR:
$ git checkout pull/16496
$ git pull https://git.openjdk.org/jdk.git pull/16496/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 16496

View PR using the GUI difftool:
$ git pr show -t 16496

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16496.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 3, 2023

👋 Welcome back liach! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 3, 2023
@openjdk
Copy link

openjdk bot commented Nov 3, 2023

@liach The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@mlbridge
Copy link

mlbridge bot commented Nov 3, 2023

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 1, 2023

@liach This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 29, 2023

@liach This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Dec 29, 2023
@liach
Copy link
Member Author

liach commented Dec 30, 2023

/open

@openjdk openjdk bot reopened this Dec 30, 2023
@openjdk
Copy link

openjdk bot commented Dec 30, 2023

@liach This pull request is now open

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 28, 2024

@liach This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 25, 2024

@liach This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Feb 25, 2024
@liach
Copy link
Member Author

liach commented Feb 28, 2024

/open

Please review this patch that migrated descriptor parsing from old, complex Java 5 signature parsing system to the java.lang.invoke's descriptor parsing utilities.

@openjdk openjdk bot reopened this Feb 28, 2024
@openjdk
Copy link

openjdk bot commented Feb 28, 2024

@liach This pull request is now open

@openjdk
Copy link

openjdk bot commented Mar 13, 2024

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 11, 2024

@liach This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented May 9, 2024

@liach This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this May 9, 2024
@liach
Copy link
Member Author

liach commented May 9, 2024

/open

@openjdk openjdk bot reopened this May 9, 2024
@openjdk
Copy link

openjdk bot commented May 9, 2024

@liach This pull request is now open

@liach
Copy link
Member Author

liach commented May 18, 2024

Superseded by #19281

@liach liach closed this May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs [email protected] rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

1 participant