RFR: JDK-8346465 : Add a check in setData() to restrict the update of Built-In ICC_Profiles [v11]
Harshitha Onkar
honkar at openjdk.org
Mon Mar 10 23:39:55 UTC 2025
On Thu, 6 Mar 2025 20:20:28 GMT, Sergey Bylokhov <serb at 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
More information about the client-libs-dev
mailing list