65 Commits

Author SHA1 Message Date
Joe Darcy
25e88b21af 8282252: Improve BigInteger/Decimal validation
Reviewed-by: jboes, rhalade, skoivu, bpb, smarks
2022-10-18 22:41:14 +00:00
Raffaello Giulietti
0b7d811c98 8294730: Add @throws and @implNote clauses to BigInteger::isProblablePrime and BigInteger::nextProblablePrime
Reviewed-by: darcy, bpb
2022-10-18 09:56:03 +00:00
Joe Darcy
1dafbe3f94 8294539: Augment discussion of equivalence relations on floating-point values
Reviewed-by: psandoz, smarks
2022-10-05 00:18:55 +00:00
Raffaello Giulietti
081691adf4 8294593: Check the size of the target on invocations of BigInteger::isProbablePrime
Reviewed-by: darcy
2022-10-03 18:02:21 +00:00
Sergey Tsypanov
c83fcbd18f 8290079: Reduce interaction with volatile in static initializer of BigInteger
Reviewed-by: jpai, rriggs, darcy
2022-07-13 19:36:50 +00:00
Raffaello Giulietti
35387d5cb6 8289260: BigDecimal movePointLeft() and movePointRight() do not follow their API spec
Reviewed-by: darcy
2022-07-06 16:22:18 +00:00
Raffaello Giulietti
c15e10fb6c 8233760: Result of BigDecimal.toString throws overflow exception on new BigDecimal(str)
Reviewed-by: darcy
2022-06-08 16:23:04 +00:00
Joe Darcy
5d4ea9b954 8273346: Expand library mappings to IEEE 754 operations
Reviewed-by: bpb
2022-06-07 16:13:42 +00:00
Brian Burkhalter
1d8e92ae0d 8213045: Add BigDecimal.TWO
Reviewed-by: darcy
2022-05-17 18:08:32 +00:00
Roger Riggs
17c52789b7 8286378: Address possibly lossy conversions in java.base
Reviewed-by: naoto, xuelei, bpb, alanb
2022-05-12 16:50:36 +00:00
Brian Burkhalter
04bba07d65 8286363: BigInteger.parallelMultiply missing @since 19
Reviewed-by: alanb, darcy
2022-05-10 15:30:38 +00:00
Joe Darcy
3cbf769f55 8285977: Add links to IEEE 754 specification
Reviewed-by: jjg, iris, bpb
2022-05-03 16:58:19 +00:00
Magnus Ihse Bursie
fb469fb894 8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
2022-04-19 20:07:57 +00:00
Andrey Turbanov
3cfffa4f8e 8282188: Unused static field MathContext.DEFAULT_DIGITS
Reviewed-by: darcy, bpb
2022-02-24 11:03:29 +00:00
Dr Heinz M. Kabutz
83ffbd2e7a 8277175: Add a parallel multiply method to BigInteger
Reviewed-by: psandoz
2022-02-11 18:49:04 +00:00
Daniel Jeliński
e73ee0ca10 8281259: MutableBigInteger subtraction could be simplified
Reviewed-by: bpb
2022-02-11 16:24:43 +00:00
Pavel Rappo
f180530935 8279918: Fix various doc typos
Reviewed-by: kevinw, lancea, mullan, sspitsyn, naoto, jlahoda, azvegint, egahlin, jjg
2022-01-14 16:10:14 +00:00
Sergey Tsypanov
20db7800a6 8277868: Use Comparable.compare() instead of surrogate code
Reviewed-by: rriggs, aivanov
2021-12-16 21:39:08 +00:00
Naoto Sato
c43452859d 8273546: DecimalFormat documentation contains literal HTML character references
Reviewed-by: joehw, bpb, iris, lancea
2021-09-23 12:48:49 +00:00
Brian Burkhalter
d1aeca117c 8272541: Incorrect overflow test in Toom-Cook branch of BigInteger multiplication
Reviewed-by: darcy
2021-08-27 16:09:28 +00:00
Claes Redestad
30b0f820ce 8272626: Avoid C-style array declarations in java.*
Reviewed-by: dfuchs, alanb
2021-08-18 10:47:03 +00:00
Weijun Wang
a8408708b0 8271616: oddPart in MutableBigInteger::mutableModInverse contains info on final result
Reviewed-by: bpb, darcy, valeriep
2021-08-04 00:02:59 +00:00
Ignasi Marimon-Clos
1aef372ed8 8266578: Disambiguate BigDecimal description of scale
Reviewed-by: darcy, bpb
2021-07-12 16:54:39 +00:00
Patrick Concannon
4eb216824f 8267670: Update java.io, java.math, and java.text to use switch expressions
Reviewed-by: darcy, chegar, naoto, iris, dfuchs, lancea, vtewari
2021-06-01 10:14:56 +00:00
Weijun Wang
f834557ae0 8258915: Temporary buffer cleanup
Reviewed-by: valeriep
2021-04-22 18:11:43 +00:00
Joe Darcy
9e7c748db5 8265700: Regularize throws clauses in BigDecimal
Reviewed-by: bpb
2021-04-21 22:04:17 +00:00
Joe Darcy
259319669c 8264161: BigDecimal#stripTrailingZeros can throw undocumented ArithmeticException
Reviewed-by: bpb
2021-03-25 20:42:34 +00:00
Joe Darcy
24afa36d5c 8263726: divideToIntegralValue typo on BigDecimal documentation
Reviewed-by: bpb
2021-03-17 16:58:20 +00:00
Patrick Concannon
0f2402d0a2 8263190: Update java.io, java.math, and java.text to use instanceof pattern variable
Reviewed-by: lancea, bpb, darcy, naoto, iris, dfuchs, smarks, redestad
2021-03-09 11:09:06 +00:00
Joe Darcy
14cfbda39e 8261366: Add discussion of IEEE 754 to BigDecimal
Reviewed-by: bpb
2021-03-08 22:30:11 +00:00
Joe Darcy
2848938977 8262927: Explicitly state fields examined for BigDecimal.hashCode
Reviewed-by: bpb
2021-03-03 23:15:02 +00:00
Joe Darcy
a11818528a 8261862: Expand discussion of rationale for BigDecimal equals/compareTo semantics
Reviewed-by: smarks, bpb
2021-03-03 19:29:17 +00:00
Joe Darcy
c4664e6446 8261940: Fix references to IOException in BigDecimal javadoc
Reviewed-by: alanb, chegar, iris, bpb
2021-02-18 17:52:30 +00:00
Joe Darcy
d547e1a847 8261123: Augment discussion of equivalence classes in Object.equals and comparison methods
Reviewed-by: bpb, smarks, rriggs
2021-02-17 01:08:39 +00:00
Weijun Wang
2b166d816a 8260596: Comment cleanup in BigInteger
Reviewed-by: bpb
2021-01-28 17:54:09 +00:00
Joe Darcy
73c78c8aa0 8260329: Update references to TAOCP to latest edition
Reviewed-by: alanb, bpb
2021-01-25 19:06:56 +00:00
Brian Burkhalter
2ae3e51f59 8229845: Decrease memory consumption of BigInteger.toString()
Reviewed-by: redestad
2020-11-20 16:23:41 +00:00
Philippe Marschall
2a406f3ce5 8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
2020-09-30 20:05:07 +00:00
Brian Burkhalter
5310d85809 8252937: Correct "no comment" warnings from javadoc in java.math package
Reviewed-by: darcy
2020-09-29 22:46:16 +00:00
Vipin Sharma
d4626d89cc 8251542: Several small Javadoc errors in java.base
Fixing wrong exception type in throws clause and wrong return type description

Reviewed-by: darcy, dfuchs, mullan, mchung, rriggs
2020-08-25 09:27:36 +01:00
Brian Burkhalter
03e5f256ca 8245304: Re-examine ThreadLocal usage in java.math.BigDecimal
Reviewed-by: darcy, alanb
2020-08-13 09:33:28 -07:00
Joe Darcy
99c7b2b85b 8249273: Documentation of BigInteger(String) constructor does not mention leading plus
Reviewed-by: bpb
2020-08-06 09:58:57 -07:00
Mikael Vidstedt
1f5e21a16e Merge 2020-07-15 21:24:39 -07:00
Mark Reinhold
55039aa1c6 8249205: Remove unnecessary trademark symbols
Reviewed-by: darcy, lancea, bpb, prr, jjg, cjplummer, iris, dfuchs, weijun, joehw, wetmore, bchristi
2020-07-15 14:21:54 -07:00
Martin Buchholz
4f2edacaaf 8247782: typos in java.math
Reviewed-by: rriggs, lancea, darcy
2020-06-17 12:29:58 -07:00
Henry Jen
0278846eaa Merge 2020-04-14 23:11:49 +00:00
Pavel Rappo
4c4271f283 8242230: Whitespace typos, relaxed javadoc, formatting
Reviewed-by: darcy, igerasim
2020-04-08 11:16:56 +01:00
Ivan Gerasimov
b0e1ee4b3b 8241727: Typos: empty lines in javadoc, inconsistent indents, etc. (core-libs only)
Reviewed-by: prappo
2020-03-28 21:07:55 -07:00
Pavel Rappo
17ff85d4ad 8241014: Miscellaneous typos in documentation comments
Reviewed-by: igerasim, prappo, psandoz, rriggs, weijun
2020-03-20 20:54:56 +00:00
Joe Darcy
001b8056c8 8240624: Note mapping of RoundingMode constants to equivalent IEEE 754-2019 attribute
Reviewed-by: bpb
2020-03-05 15:07:20 -08:00