RFR: 8330465: Stable Values and Collections (Internal) [v4]
ExE Boss
duke at openjdk.org
Wed May 15 11:31:10 UTC 2024
On Wed, 15 May 2024 10:43:52 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> src/java.base/share/classes/jdk/internal/lang/stable/TrustedFieldType.java line 14:
>>
>>> 12: * operations.
>>> 13: */
>>> 14: public sealed interface TrustedFieldType
>>
>> Maybe export this interface to `jdk.unsupported`?
>
>> Maybe export this interface to `jdk.unsupported`?
>
> I don't we should do that. In general, we need jdk.unsupported to go away in the long term. Also integrity of the platform depends on java.base being very stingy and not exporting internal packages to other modules.
Given that `TrustedFieldType` is more generic than stable values, it could be moved to `jdk.internal.misc` or `jdk.internal.reflect`, then `jdk.unsupported` could use it without exporting new packages to `jdk.unsupported`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18794#discussion_r1601455889
More information about the compiler-dev
mailing list