RFR: make FieldLayout#data() public
Aleksey Shipilev
shade at openjdk.java.net
Thu Nov 11 00:00:03 UTC 2021
On Wed, 10 Nov 2021 08:04:41 GMT, Ivan Ponomarev <duke at openjdk.java.net> wrote:
> > Maybe it would be better to provide the specific accessor
>
> Added accessors for field's value and the `Field` itself. The reason why `value` alone is not enough: we want exact field's type information.
There is already `typeClass()`. Do you actually need `Class<?>` out of it? I am not sure that one is always accessible.
-------------
PR: https://git.openjdk.java.net/jol/pull/19
More information about the jol-dev
mailing list