RFR: JDK-8346465 : Add a check in setData() to restrict the update of Built-In ICC_Profiles [v11]
Sergey Bylokhov
serb at openjdk.org
Fri Mar 7 01:34:00 UTC 2025
On Thu, 6 Mar 2025 21:23:26 GMT, Phil Race <prr at openjdk.org> wrote:
>If an app got a profile 'from some place', it probably should not be trying to change it,
But this is not always possible. For example, a buffered image has a color model that references a color space and a color profile. To modify something in that profile(like intents screen vs printer) before converting the entire image, it is necessary to check whether it is a built-in profile. If it is, the whole image must be recreated; otherwise, an exception will occur. Since there is no way to check if a profile is built-in, making built-in profiles read-only might be a better approach, similar to [java properties](https://bugs.openjdk.org/browse/JDK-8066709).
>I don't see such a discussion there. Maybe it was 'offline' ?
It was somewhere online not too long ago.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23606#discussion_r1984271026
More information about the client-libs-dev
mailing list