RFR: 4511638: Double.toString(double) sometimes produces incorrect results [v14]
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Jun 1 15:35:41 UTC 2022
On Jun 1, 2022, at 2:25 AM, Raffaello Giulietti <duke at openjdk.java.net<mailto:duke at openjdk.java.net>> wrote:
On Tue, 31 May 2022 21:57:44 GMT, Brian Burkhalter <bpb at openjdk.org<mailto:bpb at 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/jdk/internal/math/DoubleToDecimal.java line 118:
116: private int index;
117:
118: private DoubleToDecimal() {
Maybe add a comment like
/**
* Prevent instantiation.
*/
or
// Prevent instantiation of this class.
The constructor _is_ invoked, so the comment would be inappropriate.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3402
Mea culpa.
More information about the core-libs-dev
mailing list