On Fri, 4 Oct 2024 17:45:03 GMT, Weijun Wang <wei...@openjdk.org> wrote:
>> See also: checking the `spec` parameter in `engineNewEncapsulator`, which >> does use `InvalidParameterException`. > > We only have child classes inside JDK, therefore if the convention is not > followed, it's treated as a programming error. In other cases when the input > argument are from users we need to be prepared for any invalid input and we > treat them as runtime exceptions. Thanks for the explanation. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/21167#discussion_r1788259301