On Thu, 6 Mar 2025 20:20:28 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> Yes, readObject(..) and readResolve(..) will return the singleton, as per >> the serialization spec 👍 >> https://docs.oracle.com/en/java/javase/21/docs/api/serialized-form.html#java.awt.color.ICC_Profile >> but I agree we don't need to mention that here. >> >> Yes, I agree builtIn should be transient, since we return the singleton as >> above, all will work as expected. > >>Yes, readObject(..) and readResolve(..) will return the singleton > > We do not specify anywhere in the API that we use singletons; that is an > implementation detail. builtIn flag converted to transient var. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23606#discussion_r1988155483