RFR: JDK-8346465 : Add a check in setData() to restrict the update of Built-In ICC_Profiles [v14]
Alexey Ivanov
aivanov at openjdk.org
Tue Mar 11 17:59:12 UTC 2025
On Tue, 11 Mar 2025 17:43:44 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
> test controls the type of arguments (valid arguments)
Yes. And the arguments can change, although it's very unlikely.
The built-in check in the code is done before validating the arguments, therefore we know that whatever exception is thrown, it should be because of trying to modify a built-in profile.
Anyway, checking the exception message seems reasonable, and it ensures the test behaves the way we expect it to.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23606#discussion_r1989854693
More information about the client-libs-dev
mailing list