RFR: 8274299: Make Method/Constructor/Field accessors @Stable [v2]
Peter Levart
plevart at openjdk.java.net
Tue Sep 28 08:26:29 UTC 2021
On Mon, 27 Sep 2021 19:59:00 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> A stray thought is why not most fields in `Field`/`Method`/`Constructor` are `final`, as my IDE suggests. I can't find any hotspot code that injects values to these fields. Experimentally changing most fields in `Field` to final seem to pass at least all the java/lang/reflect tests. Since this is a trusted package `@Stable` should then be pointless.
I made them final in newly added patch now. So we can either merge this or previous commit if desired.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5694
More information about the core-libs-dev
mailing list