On Wed, 15 May 2024 10:43:52 GMT, Alan Bateman <al...@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