On Tue, 13 May 2025 13:25:21 GMT, Weijun Wang <wei...@openjdk.org> wrote:

>> Bradford Wetmore has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Missed one review comment
>
> src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java line 1650:
> 
>> 1648:                     emptyHash = md.digest();
>> 1649:                 } catch (NoSuchAlgorithmException nsae) {
>> 1650:                     throw new RuntimeException(
> 
> We usually throw a `ProviderException` here, when some weird configuration 
> removes a basic hash algorithm.

I can do a `ProviderException` if you like, but our JSSE code is all over the 
place.  Sometimes it's a `RuntimeException`, other times we wrap it into into a 
`SSLException`, and sometimes we directly do a `fatal()`.  I'd say we do 
`RuntimeException` a little more often than `ProviderException`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24976#discussion_r2090205280

Reply via email to