--- old/src/java.base/share/classes/java/math/BigDecimal.java 2017-08-11 10:52:38.262322984 -0700 +++ new/src/java.base/share/classes/java/math/BigDecimal.java 2017-08-11 10:52:38.054313905 -0700 @@ -120,18 +120,18 @@ * preferred scale for representing a result. The preferred * scale for each operation is listed in the table below. * - *
Operation | Preferred Scale of Result |
---|---|
Operation | Preferred Scale of Result |
Add | max(addend.scale(), augend.scale()) | - *
Subtract | max(minuend.scale(), subtrahend.scale()) | - *
Multiply | multiplier.scale() + multiplicand.scale() | - *
Divide | dividend.scale() - divisor.scale() | - *
Square root | radicand.scale()/2 | + *
Add | max(addend.scale(), augend.scale()) | + *
Subtract | max(minuend.scale(), subtrahend.scale()) | + *
Multiply | multiplier.scale() + multiplicand.scale() | + *
Divide | dividend.scale() - divisor.scale() | + *
Square root | radicand.scale()/2 | *
Result of rounding input to one digit with the given + * | ||||||||
---|---|---|---|---|---|---|---|---|
Input Number | Result of rounding input to one digit with the given * rounding mode | *|||||||
Input Number | {@code UP} | + *{@code UP} | *{@code DOWN} | *{@code CEILING} | *{@code FLOOR} | @@ -66,18 +66,18 @@ *{@code HALF_EVEN} | *{@code UNNECESSARY} | *|
5.5 | 6 | 5 | 6 | 5 | 6 | 5 | 6 | throw {@code ArithmeticException} | - *
2.5 | 3 | 2 | 3 | 2 | 3 | 2 | 2 | throw {@code ArithmeticException} | - *
1.6 | 2 | 1 | 2 | 1 | 2 | 2 | 2 | throw {@code ArithmeticException} | - *
1.1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | throw {@code ArithmeticException} | - *
1.0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | - *
-1.0 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | - *
-1.1 | -2 | -1 | -1 | -2 | -1 | -1 | -1 | throw {@code ArithmeticException} | - *
-1.6 | -2 | -1 | -1 | -2 | -2 | -2 | -2 | throw {@code ArithmeticException} | - *
-2.5 | -3 | -2 | -2 | -3 | -3 | -2 | -2 | throw {@code ArithmeticException} | - *
-5.5 | -6 | -5 | -5 | -6 | -6 | -5 | -6 | throw {@code ArithmeticException} | + *
5.5 | 6 | 5 | 6 | 5 | 6 | 5 | 6 | throw {@code ArithmeticException} | + *
2.5 | 3 | 2 | 3 | 2 | 3 | 2 | 2 | throw {@code ArithmeticException} | + *
1.6 | 2 | 1 | 2 | 1 | 2 | 2 | 2 | throw {@code ArithmeticException} | + *
1.1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | throw {@code ArithmeticException} | + *
1.0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | + *
-1.0 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | + *
-1.1 | -2 | -1 | -1 | -2 | -1 | -1 | -1 | throw {@code ArithmeticException} | + *
-1.6 | -2 | -1 | -1 | -2 | -2 | -2 | -2 | throw {@code ArithmeticException} | + *
-2.5 | -3 | -2 | -2 | -3 | -3 | -2 | -2 | throw {@code ArithmeticException} | + *
-5.5 | -6 | -5 | -5 | -6 | -6 | -5 | -6 | throw {@code ArithmeticException} | *
Example: - *
Input Number | - *Input rounded to one digit with {@code UP} rounding + * |
---|---|
Input Number | + *Input rounded to one digit with {@code UP} rounding * |
5.5 | 6 | - *
2.5 | 3 | - *
1.6 | 2 | - *
1.1 | 2 | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | -2 | - *
-1.6 | -2 | - *
-2.5 | -3 | - *
-5.5 | -6 | + *
5.5 | 6 | + *
2.5 | 3 | + *
1.6 | 2 | + *
1.1 | 2 | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | -2 | + *
-1.6 | -2 | + *
-2.5 | -3 | + *
-5.5 | -6 | *
Example: - *
Input Number | - *Input rounded to one digit with {@code DOWN} rounding + * |
---|---|
Input Number | + *Input rounded to one digit with {@code DOWN} rounding * |
5.5 | 5 | - *
2.5 | 2 | - *
1.6 | 1 | - *
1.1 | 1 | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | -1 | - *
-1.6 | -1 | - *
-2.5 | -2 | - *
-5.5 | -5 | + *
5.5 | 5 | + *
2.5 | 2 | + *
1.6 | 1 | + *
1.1 | 1 | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | -1 | + *
-1.6 | -1 | + *
-2.5 | -2 | + *
-5.5 | -5 | *
Example: - *
Input Number | *Input rounded to one digit with {@code CEILING} rounding * |
---|---|
5.5 | 6 | - *
2.5 | 3 | - *
1.6 | 2 | - *
1.1 | 2 | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | -1 | - *
-1.6 | -1 | - *
-2.5 | -2 | - *
-5.5 | -5 | + *
5.5 | 6 | + *
2.5 | 3 | + *
1.6 | 2 | + *
1.1 | 2 | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | -1 | + *
-1.6 | -1 | + *
-2.5 | -2 | + *
-5.5 | -5 | *
Example: - *
Input Number | - *Input rounded to one digit with {@code FLOOR} rounding + * |
---|---|
Input Number | + *Input rounded to one digit with {@code FLOOR} rounding * |
5.5 | 5 | - *
2.5 | 2 | - *
1.6 | 1 | - *
1.1 | 1 | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | -2 | - *
-1.6 | -2 | - *
-2.5 | -3 | - *
-5.5 | -6 | + *
5.5 | 5 | + *
2.5 | 2 | + *
1.6 | 1 | + *
1.1 | 1 | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | -2 | + *
-1.6 | -2 | + *
-2.5 | -3 | + *
-5.5 | -6 | *
Example: - *
Input Number | - *Input rounded to one digit with {@code HALF_UP} rounding + * |
---|---|
Input Number | + *Input rounded to one digit with {@code HALF_UP} rounding * |
5.5 | 6 | - *
2.5 | 3 | - *
1.6 | 2 | - *
1.1 | 1 | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | -1 | - *
-1.6 | -2 | - *
-2.5 | -3 | - *
-5.5 | -6 | + *
5.5 | 6 | + *
2.5 | 3 | + *
1.6 | 2 | + *
1.1 | 1 | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | -1 | + *
-1.6 | -2 | + *
-2.5 | -3 | + *
-5.5 | -6 | *
Example: - *
Input Number | - *Input rounded to one digit with {@code HALF_DOWN} rounding + * |
---|---|
Input Number | + *Input rounded to one digit with {@code HALF_DOWN} rounding * |
5.5 | 5 | - *
2.5 | 2 | - *
1.6 | 2 | - *
1.1 | 1 | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | -1 | - *
-1.6 | -2 | - *
-2.5 | -2 | - *
-5.5 | -5 | + *
5.5 | 5 | + *
2.5 | 2 | + *
1.6 | 2 | + *
1.1 | 1 | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | -1 | + *
-1.6 | -2 | + *
-2.5 | -2 | + *
-5.5 | -5 | *
Example: - *
Input Number | - *Input rounded to one digit with {@code HALF_EVEN} rounding + * |
---|---|
Input Number | + *Input rounded to one digit with {@code HALF_EVEN} rounding * |
5.5 | 6 | - *
2.5 | 2 | - *
1.6 | 2 | - *
1.1 | 1 | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | -1 | - *
-1.6 | -2 | - *
-2.5 | -2 | - *
-5.5 | -6 | + *
5.5 | 6 | + *
2.5 | 2 | + *
1.6 | 2 | + *
1.1 | 1 | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | -1 | + *
-1.6 | -2 | + *
-2.5 | -2 | + *
-5.5 | -6 | *
Example: - *
Input Number | - *Input rounded to one digit with {@code UNNECESSARY} rounding + * |
---|---|
Input Number | + *Input rounded to one digit with {@code UNNECESSARY} rounding * |
5.5 | throw {@code ArithmeticException} | - *
2.5 | throw {@code ArithmeticException} | - *
1.6 | throw {@code ArithmeticException} | - *
1.1 | throw {@code ArithmeticException} | - *
1.0 | 1 | - *
-1.0 | -1 | - *
-1.1 | throw {@code ArithmeticException} | - *
-1.6 | throw {@code ArithmeticException} | - *
-2.5 | throw {@code ArithmeticException} | - *
-5.5 | throw {@code ArithmeticException} | + *
5.5 | throw {@code ArithmeticException} | + *
2.5 | throw {@code ArithmeticException} | + *
1.6 | throw {@code ArithmeticException} | + *
1.1 | throw {@code ArithmeticException} | + *
1.0 | 1 | + *
-1.0 | -1 | + *
-1.1 | throw {@code ArithmeticException} | + *
-1.6 | throw {@code ArithmeticException} | + *
-2.5 | throw {@code ArithmeticException} | + *
-5.5 | throw {@code ArithmeticException} | *
null
+ * number
- * integer
- * currency
- * percent
- * date
- * short
- * medium
- * long
- * full
- * time
- * short
- * medium
- * long
- * full
- * choice
- * "{" + argumentIndex + "}"
* null
+ * null
* "null"
* instanceof ChoiceFormat
- * instanceof ChoiceFormat
+ * subformat.format(argument).indexOf('{') >= 0 ?
* (new MessageFormat(subformat.format(argument), getLocale())).format(argument) :
* subformat.format(argument)
* != null
- * != null
+ * subformat.format(argument)
* null
- * instanceof Number
+ * null
+ * instanceof Number
* NumberFormat.getInstance(getLocale()).format(argument)
* null
- * instanceof Date
+ * instanceof Date
* DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, getLocale()).format(argument)
* null
- * instanceof String
+ * instanceof String
* argument
* null
- * argument.toString()
* * CLDR and LDML identify variants: - *
Chronology ID | - *Calendar Type | - *Locale extension, see {@link java.util.Locale} | - *Description | + *Chronology ID | + *Calendar Type | + *Locale extension, see {@link java.util.Locale} | + *Description | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hijrah-umalqura | + *Hijrah-umalqura | *islamic-umalqura | *ca-islamic-umalqura | *Islamic - Umm Al-Qura calendar of Saudi Arabia | @@ -148,38 +148,38 @@ *
Property Name | - *Property value | - *Description | + *Property Name | + *Property value | + *Description | *||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | + *id | *Chronology Id, for example, "Hijrah-umalqura" | *The Id of the calendar in common usage | *||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | + *type | *Calendar type, for example, "islamic-umalqura" | *LDML defines the calendar types | *||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
version | + *version | *Version, for example: "1.8.0_1" | *The version of the Hijrah variant data | *||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
iso-start | + *iso-start | *ISO start date, formatted as {@code yyyy-MM-dd}, for example: "1900-04-30" | *The ISO date of the first day of the minimum Hijrah year. | *||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
yyyy - a numeric 4 digit year, for example "1434" | + *yyyy - a numeric 4 digit year, for example "1434" | *The value is a sequence of 12 month lengths, * for example: "29 30 29 30 29 30 30 30 29 30 29 29" | *The lengths of the 12 months of the year separated by whitespace.
--- old/src/java.base/share/classes/java/time/chrono/IsoEra.java 2017-08-11 10:52:40.538422337 -0700
+++ new/src/java.base/share/classes/java/time/chrono/IsoEra.java 2017-08-11 10:52:40.334413431 -0700
@@ -70,27 +70,27 @@
* A definition has therefore been created with two eras - 'Current era' (CE) for
* years on or after 0001-01-01 (ISO), and 'Before current era' (BCE) for years before that.
*
- *
Predefined Formatters- *
* The count of pattern letters determines the format. * --- old/src/java.base/share/classes/java/time/temporal/IsoFields.java 2017-08-11 10:52:42.698516625 -0700 +++ new/src/java.base/share/classes/java/time/temporal/IsoFields.java 2017-08-11 10:52:42.486507371 -0700 @@ -136,18 +136,18 @@ * * For example: * - *
|