RFR: JDK-8346465 : Add a check in setData() to restrict the update of Built-In ICC_Profiles [v5]
Alexey Ivanov
aivanov at openjdk.org
Mon Feb 24 19:19:56 UTC 2025
On Mon, 24 Feb 2025 19:05:12 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
> There are other way to create a profile - directly loading it form a file (serialization) `ICC_Profile.getInstance(<path to sRGB.pf or any custom profiles>); `or using the byte array representation of the profile. So the main intention here was not to tie ProfileDeferralInfo with isBuiltIn.
Yes, there are. Does any other way create a **built-in profile**? No, it doesn't as far as I can see.
Is this flexibility needed? I'd say, it's not needed… unless there's a very high chance there'll soon be introduced a new build-in ICC profile which is created in another way but `ICC_Profile(ProfileDeferralInfo)` constructor.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23606#discussion_r1968271385
More information about the client-libs-dev
mailing list