On Tue, 11 Mar 2025 17:43:44 GMT, Harshitha Onkar <hon...@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