RFR: JDK-8315458 Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview) [v34]
Alan Bateman
alanb at openjdk.org
Fri Nov 24 11:03:25 UTC 2023
On Thu, 23 Nov 2023 15:55:42 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:
>> Address changes from JEP 445 to JEP 463.
>>
>> - Move from a SYNTHETIC unnamed class to a MANDATED implicit class.
>>
>> - Don't mark class on read.
>>
>> - Remove reflection and annotation processing related to unnamed classes.
>>
>> - Simplify main method search.
>
> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
>
> Remove Test
src/java.base/share/classes/java/lang/Class.java line 4797:
> 4795: PublicMethods.MethodList res = getMethodsRecursive(name, parameterTypes, true, publicOnly);
> 4796: return res == null ? null : getReflectionFactory().copyMethod(res.getMostSpecific());
> 4797: }
Would you mind moving this up to follow getDeclaredPublicMethods, as these are the two are the method finders exposed via JavaLangAccess.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16461#discussion_r1404226792
More information about the compiler-dev
mailing list