On Wed, 10 Jun 2026 15:28:38 GMT, Chen Liang <[email protected]> wrote:
>> src/java.base/share/classes/java/lang/reflect/package-info.java line 27:
>>
>>> 25:
>>> 26: /**
>>> 27: * Provides classes and interfaces, in addition to {@link Class
>>> java.lang.Class},
>>
>> Maybe we should add "and java.lang.Module" to this.
>
> I included java.lang.Class because on JBS, many of its changes belong to
> `java.lang:reflect` subcompnent like all `java.lang.reflect` changes. If we
> include `Module`, we can argue for inclusion of `Package` etc. I personally
> would prefer to drop "in addition to java.lang.Class" if this becomes
> confusing.
Maybe we can qualify this as `obtaining reflective information about Java
programs derived from {@code class} files`, which distinguishes
java.lang.reflect and java.lang.Class from Package/Module (purely class loader
artifacts)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28685#discussion_r3389588603