RFR: JDK-8346465 : Add a check in setData() to restrict the update of Built-In ICC_Profiles [v5]

Harshitha Onkar honkar at openjdk.org
Thu Feb 20 18:46:52 UTC 2025


On Thu, 20 Feb 2025 18:25:13 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Although, there's no time where such a modification will be allowed

Exactly, it will throw exception every time a built-In profile is passed unlike IllegalStateException which is thrown only during an inappropriate time for instance when you are trying to add an element to the queue when it is already full. Plus setData() already throws IAE for other invalid argument cases.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23606#discussion_r1964161347


More information about the client-libs-dev mailing list