RFR: 8349400: Improve startup speed via eliminating nested classes

Shaojin Wen swen at openjdk.org
Sat Feb 8 08:47:09 UTC 2025


On Thu, 6 Feb 2025 23:45:57 GMT, Johannes Graham <duke at openjdk.org> wrote:

>> you are right, but accessing static field from enum constructor is not allowed
>
> You could define the static field on another class, like SecurityConstants, and then use it in the enum constructor.

Creating a new empty string array every time is the original behavior, which has nothing to do with the purpose of this PR. Should we follow the principle of minimal changes? If we want to change it, we should submit another PR

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23411#discussion_r1947544944


More information about the security-dev mailing list