On Fri, 3 Nov 2023 14:03:02 GMT, Chen Liang <li...@openjdk.org> wrote:

> 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 
> https://github.com/openjdk/jdk/blob/1a21c1a783d64ca0930c358c06a43975f96ffac6/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java#L93
> should be functionally equivalent to the previous `getDeclsLoader()`
> https://github.com/openjdk/jdk/blob/1a21c1a783d64ca0930c358c06a43975f96ffac6/src/java.base/share/classes/sun/reflect/generics/factory/CoreReflectionFactory.java#L60-L68
> plus
> https://github.com/openjdk/jdk/blob/1a21c1a783d64ca0930c358c06a43975f96ffac6/src/java.base/share/classes/sun/reflect/generics/factory/CoreReflectionFactory.java#L113-L114

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/16496

Reply via email to