[foreign-jextract] RFR: JDK-8244270: reorganize ABI-dependent layout constants (second attempt)
Henry Jen
henryjen at openjdk.java.net
Sat May 2 15:05:32 UTC 2020
On Sat, 2 May 2020 02:26:09 GMT, Henry Jen <henryjen at openjdk.org> wrote:
> The other thing I don't think we should be doing is to make CLASS_ATTRIBUTE like "abi/sysv/class" part of the layout.
>
> SystemABI constants should be a delegation to the implementation class, and strip the abi-class attribute. Trusting
> this attribute from external is dangerous, a tool can compose a bad layout to do some harm?
> Bottom line, type is reasonable to expose to public, ABI implementation detail such as classification is not.
Actually expose type or classification have the same effect, as classification is derived from type, the attribute
value is an instance of a hidden class type so it's somewhat protected.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/141
More information about the panama-dev
mailing list