On Tue, 10 May 2022 03:21:21 GMT, Joe Darcy <da...@openjdk.org> wrote:

>> Raffaello Giulietti has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   4511638: Double.toString(double) sometimes produces incorrect results
>
> src/java.base/share/classes/java/lang/AbstractStringBuilder.java line 882:
> 
>> 880:         try {
>> 881:             FloatToDecimal.appendTo(f, this);
>> 882:         } catch (IOException ignored) {
> 
> What is the motivation for wrapping with IOException?

`[Float|Double]ToDecimal` do not have access to `AbstractStringBuilder`, so 
have to fail over `Appendable`, which can throw `IOException` in `append(*)` 
methods.

I have to find another way if this wrapping to make the compiler happy is 
unacceptable.

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

PR: https://git.openjdk.java.net/jdk/pull/3402

Reply via email to