Q: Why is java.lang.Runtime non-final?
Eirik Bjørsnøs
eirbjo at gmail.com
Mon Nov 18 21:23:55 UTC 2024
On Mon, Nov 18, 2024 at 10:17 PM Chen Liang <chen.l.liang at oracle.com> wrote:
> Hi Eirik,
> I think it might have been a legacy oversight; note that even
> java.util.Arrays was just recently made final.
>
Thanks, filed https://bugs.openjdk.org/browse/JDK-8344460 to track this
enhancement.
> > If Runtime was made final it seems we could remove the CheckCSMs test.
> I disagree; CheckCSMs test checks for missing CSM annotations when new
> caller sensitive methods are added, and to ensure other reflection changes
> do not tamper with the caller sensitive mechanism. The static/final
> requirements is just one minor aspect of that test.
>
Alright, sounds good. We can probably remove the Runtime methods registered
in this test though.
Eirik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20241118/c9583152/attachment-0001.htm>
More information about the core-libs-dev
mailing list