RFR: JDK-8308913: Update core reflection for JEP 445 (preview) [v4]
Chen Liang
liach at openjdk.org
Fri Jun 2 23:50:09 UTC 2023
On Fri, 2 Jun 2023 18:41:57 GMT, Mandy Chung <mchung at openjdk.org> wrote:
>> As mentioned in https://bugs.openjdk.org/browse/JDK-8308916 the expression should be `PreviewFeatures.isEnabled() && isSynthetic() && isTopLevelClass()` as `PreviewFeatures.isEnabled()` is a private static final test that will effectively make the full expression constant `false` when not in preview mode.
>
> Checking package access should also have near-zero cost.
Will this accidentally return `true` for classes from other JVM programming languages?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14165#discussion_r1214969195
More information about the core-libs-dev
mailing list