r/java • • Jul 16 '26

Identifying JDK value class candidates

https://mail.openjdk.org/archives/list/core-libs-dev@openjdk.org/thread/Y72NRXM7KYBX43OKYBQMVKOZDWKG4MHS/
52 Upvotes

59 comments sorted by

View all comments

Show parent comment

1

u/koflerdavid Jul 16 '26

There is not much point to flatten this since there are only oh so many instances of an enum class, which are referred to using a pointer.

2

u/davidalayachew Jul 16 '26

There is not much point to flatten this since there are only oh so many instances of an enum class, which are referred to using a pointer.

Yeah, Ron Pressler explained it to me in more detail in a response to my comment.