On Wed, 10 Jun 2026 16:47:01 GMT, Chen Liang <[email protected]> wrote:

>> Core reflection has its own type conversion behavior that is somewhat poorly 
>> specified; it is scattered around a few places, and its boxing and unboxing 
>> deviates from that of Java language assignment contexts. In addition, core 
>> reflection has a somewhat erroneous access check system. We can improve the 
>> overview of java.lang.reflect to address these shortcomings and recommend 
>> users to use java.lang.invoke for better functionality in these areas.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Chen Liang has updated the pull request with a new target base due to a merge 
> or a rebase. The incremental webrev excludes the unrelated changes brought in 
> by the merge/rebase. The pull request contains 20 additional commits since 
> the last revision:
> 
>  - Tweaks
>  - Merge branch 'master' of https://github.com/openjdk/jdk into 
> doc/reflect-accessor-conversion
>  - Years
>  - Formatting and add an example
>  - Drop 2
>  - typos and consistency
>  - Merge branch 'doc/reflect-accessor-conversion' into m1
>  - Merge branch 'master' of https://github.com/openjdk/jdk into 
> doc/reflect-accessor-conversion
>  - formatting
>  - Merge branch 'master' of https://github.com/openjdk/jdk into 
> doc/reflect-accessor-conversion
>  - ... and 10 more: https://git.openjdk.org/jdk/compare/158113f2...86002208

FYI @viktorklang-ora and other reviewers, we had an offline discussion and 
reached the conclusion that the core reflection overview should be rewritten to 
be more introductory and self-explanatory instead of serving as a terse 
specification like the JLS or JVMS. This patch will undergo major revisions.

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

PR Comment: https://git.openjdk.org/jdk/pull/28685#issuecomment-4691638037

Reply via email to