On Fri, 27 Nov 2026 23:56:01 GMT, Chen Liang <[email protected]> wrote:
>> We could just move those `ConstantDescs` things into a helper class. > > I think a third helper class can also be subject to initialization through > other means and may mess up both ConstantDescs or PrimitiveCDI. We needed > these fields in PrimitiveCDI because CDs cannot express internal public types. The non‑hacky fix would be to move all things which `PrimitiveClassDescImpl` and `DynamicConstantDesc` need to initialise from `ConstantDescs` to something like `jdk.internal.constant.ConstantsPreInit`, and not allowing it to depend on any of those. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33758#discussion_r4731831994
