Commit Graph

102 Commits

Author SHA1 Message Date
Magnus Ihse Bursie
97df63049c 8179889: Fix typographic errors in copyright headers
Reviewed-by: erikj, dholmes
2017-05-09 12:57:30 +02:00
Naoto Sato
e4e2e277fc 8178823: Unable to initialize HijrahCalendar: Hijrah-umalqura when running with a security manager
Reviewed-by: lancea, rriggs
2017-04-20 14:09:35 -07:00
Roger Riggs
d7c71b5a17 8174128: [testbug] Remove implementation dependency from java.time TCK tests
Reviewed-by: dfuchs, scolebourne
2017-02-08 13:17:31 -05:00
Sergei Kovalev
60a77d0b84 8171958: Several tests from java/time/test/java/time/format requiring jdk.localedata for execution
Reviewed-by: naoto
2017-01-11 13:10:03 +03:00
Nadeesh TV
8f9235fc56 8145633: Adjacent value parsing not supported for Localized Patterns
Enhance the localized weekfields to take part in adjacent value parsing

Reviewed-by: rriggs, scolebourne
2016-12-21 18:45:34 +00:00
Alan Bateman
30bcdb962c Merge 2016-12-01 11:16:23 +00:00
Alan Bateman
fbe85300bf 8169069: Module system implementation refresh (11/2016)
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Reviewed-by: plevart, chegar, psandoz, mchung, alanb, dfuchs, naoto, coffeys, weijun
2016-12-01 08:57:53 +00:00
Bhanu Prakash Gopularam
460675bc08 8158880: java/time/tck/java/time/format/TCKDateTimeFormatterBuilder.java fail with zh_CN locale
Set locale explicitly in the test

Reviewed-by: rriggs, naoto
2016-11-22 08:22:57 +00:00
Bhanu Prakash Gopularam
86bd9c2fd3 8066291: Return unmodifiable set of zone IDs to optimize ZoneIdPrinterParser
Cache the available zones to speed up parsing

Reviewed-by: rriggs, scolebourne
2016-11-21 06:04:25 +00:00
Anubhav Meena
d3d2beed82 8163330: HijrahDate aligned day of week incorrect
Reviewed-by: rriggs, scolebourne
2016-10-21 14:52:04 +05:30
Rachna Goel
8f9823ef6e 8146750: java.time.Month.getDisplayName() return incorrect narrow names with JRE provider on locale de,de_DE,en_US
Reviewed-by: okutsu, rriggs, naoto, peytoia
2016-10-21 11:33:37 +09:00
Ramanand Patil
4dbca869e0 8166875: (tz) Support tzdata2016g
Reviewed-by: martin, okutsu
2016-10-05 16:39:13 +05:30
Alexandre Iline
9aa36236be 8148859: Fix module dependences for java/time tests
Reviewed-by: alanb, rriggs
2016-09-06 17:07:06 -04:00
Ivan Gerasimov
1487578b08 8164366: ZoneOffset.ofHoursMinutesSeconds() does not reject invalid input
Reviewed-by: scolebourne, ntv, coffeys
2016-08-22 22:16:54 +03:00
Nadeesh TV
f7eff31b47 8066806: java.time.format.DateTimeFormatter cannot parse an offset with single digit hour
Added support for single digit hour in offset

Reviewed-by: rriggs, scolebourne
2016-07-28 10:28:21 +00:00
Naoto Sato
a94f94cce1 8043387: java/time/test/java/util/TestFormatter.java failed
Reviewed-by: sherman
2016-06-15 09:24:16 -07:00
Ramanand Patil
78bb28e4af 8151876: (tz) Support tzdata2016d
Reviewed-by: okutsu, coffeys
2016-06-01 14:33:44 +01:00
Rachna Goel
48873ebc3f 8145136: Upgrade CLDR locale data
Reviewed-by: naoto, okutsu, peytoia
2016-05-31 13:00:48 +09:00
Bhanu Prakash Gopularam
a94e9c4d1b 8156718: Need tests for IsoFields getFrom for unsupported non-Iso Temporal fields
Reviewed-by: rriggs, scolebourne
2016-05-25 09:14:55 +00:00
Nadeesh TV
6c51be077a 8155823: Add date-time patterns 'v' and 'vvvv'
Addded  necessary methodss

Reviewed-by: rriggs, scolebourne
2016-05-13 18:58:32 +00:00
Bhanu Prakash Gopularam
f2dabbdb6a 8062804: IsoFields WEEK_BASED_YEAR and QUARTER_OF_YEAR too lenient
Addded the necessary chck in IsoFields WEEK_BASED_YEAR and QUARTER_OF_YEAR

Reviewed-by: rriggs, scolebourne
2016-05-11 10:28:23 +00:00
Nadeesh TV
4900a83203 8079628: java.time: DateTimeFormatter containing "DD" fails on 3-digit day-of-year value`
Change the definition of 'DD' to match with CLDR

Reviewed-by: rriggs, scolebourne
2016-05-08 07:46:19 +00:00
Nadeesh TV
386a77fd91 8148949: DateTimeFormatter pattern letters 'A','n','N'
Changed the definition of pattern letters 'A','n','N' because it does not match the definition of CLDR

Reviewed-by: rriggs, scolebourne
2016-05-06 12:48:19 +00:00
Nadeesh TV
911f4b1664 8031085: DateTimeFormatter won't parse dates with custom format "yyyyMMddHHmmssSSS"
Changed the FractionPrinterParser to subclass of NumberPrinterParser to make it participate in adjacent value parsing

Reviewed-by: rriggs, scolebourne
2016-04-25 09:37:43 +00:00
Nadeesh TV
d9e44503b4 8148947: DateTimeFormatter pattern letter 'g'
Handled 'g'  in the required places

Reviewed-by: rriggs, scolebourne
2016-04-22 05:46:54 +00:00
Nadeesh TV
183d5aad2e 8154050: java.time.format.DateTimeFormatter can't parse localized zone-offset
Corrected the mistake in calculating parse end position

Reviewed-by: rriggs, scolebourne
2016-04-21 17:51:18 +00:00
Nadeesh TV
f1634255f5 8148849: Truncating Duration
Introduce a new method  to truncatedTo()

Reviewed-by: rriggs, scolebourne
2016-04-13 10:41:27 +00:00
Nadeesh TV
63fb402683 8030864: Add an efficient getDateTimeMillis method to java.time
Added epochSecond method in Chronology and overided it in IsoChronology

Reviewed-by: rriggs, scolebourne
2016-04-06 07:20:37 +00:00
Nadeesh TV
d110d8b320 8032051: "ZonedDateTime" class "parse" method fails with short time zone offset ("+01")
Reviewed-by: rriggs, scolebourne
2016-03-21 14:24:11 -04:00
Roger Riggs
829d62738c 8085887: java.time.format.FormatStyle.LONG or FULL causes unchecked exception
8076528: LocalTime.format() throws exception when FormatStyle is LONG or FULL

Reviewed-by: sherman, scolebourne
2016-03-16 13:16:14 -04:00
Nadeesh TV
3795972295 8146747: java.time.Duration.toNanos() and toMillis() exception on negative durations
Reviewed-by: rriggs, scolebourne
2016-02-08 09:56:26 -05:00
Ramanand Patil
f8b7ff3d7a 8147912: test "parseWithZoneWithoutOffset" of java/time/tck/java/time/format/TCKDTFParsedInstant.java fail on de_DE locale
Even though hardcoded data is not preferred in compatibility test cases, this case was exception. English is provided as the default locale data for DateTimeFormatter in this testcase.

Reviewed-by: okutsu, scolebourne
2016-02-02 13:55:44 +05:30
Roger Riggs
53a6c2adab 8143016: java/time/test/java/time/TestClock_System.java failed intermittently
Reviewed-by: lancea, scolebourne
2016-02-01 14:50:06 -05:00
Tagir F. Valeev
c2f738c53d 8146218: Add LocalDate.datesUntil method producing Stream<LocalDate
Reviewed-by: scolebourne, rriggs, sherman
2016-02-01 10:02:40 -05:00
Nadeesh TV
a67a5265d3 8068803: Performance of LocalDate.plusDays could be better
Reviewed-by: rriggs, scolebourne
2016-01-11 11:39:12 -05:00
Nadeesh TV
2cfdb95251 8145166: Duration.toString violates specification
Correct Duration.toString method

Reviewed-by: rriggs, scolebourne
2016-01-05 10:09:48 -05:00
Ramanand Patil
c6d209b505 8066982: ZonedDateTime.parse() returns wrong ZoneOffset around DST fall transition
In Parsed.java the method resolveInstant() is altered such that, the offset (if present) will be given priority over zone.

Reviewed-by: rriggs, scolebourne
2015-12-25 16:43:37 +03:00
Nadeesh TV
6a9a5a80ea 8143413: add toEpochSecond methods for efficient access
Reviewed-by: rriggs, scolebourne
2015-12-23 13:19:58 -05:00
Roger Riggs
570ebc4176 8032510: Add java.time.Duration.dividedBy(Duration)
Reviewed-by: rriggs, scolebourne
2015-12-16 13:00:29 -05:00
Nadeesh TV
7d2c07c70d 8142936: Add java.time.Duration methods for days, hours, minutes, seconds, etc
Reviewed-by: rriggs, scolebourne
2015-12-09 15:27:21 -05:00
Nadeesh TV
31f7efd560 8071919: Add java.time.Clock.tickMillis(ZoneId zone) method
Reviewed-by: dfuchs, rriggs, scolebourne
2015-11-17 11:06:46 -05:00
Nadeesh TV
b6d29b4f0b 8072746: LocalDate.isEra() should return IsoEra not Era
Reviewed-by: rriggs, scolebourne
2015-11-17 10:44:22 -05:00
Roger Riggs
9322c398b5 8133079: java.time LocalDate and LocalTime ofInstant() factory methods
Reviewed-by: rriggs, scolebourne
2015-11-16 15:28:55 -05:00
Nadeesh TV
09c0550556 8054978: java.time.Duration.parse() fails for negative duration with 0 seconds and nanos
Reviewed-by: rriggs, scolebourne
2015-11-13 11:52:56 -05:00
Nadeesh TV
5541c558b8 8138664: ZonedDateTime parse error for any date using 'GMT0' ZoneID - Java Bug System
Reviewed-by: rriggs, scolebourne, sherman
2015-11-10 14:12:53 -05:00
Nadeesh TV
dd0226189c 8066571: UnsupportedTemporalTypeException is thrown not only in the case of unsupported temporal - Java Bug System
Reviewed-by: rriggs, scolebourne
2015-11-10 14:11:50 -05:00
Nadeesh TV
85378470d9 8134928: java.time.Instant.truncatedTo(TemporalUnit unit) is truncating up if the year < 1970
Reviewed-by: rriggs, scolebourne
2015-10-20 13:10:28 -04:00
Roger Riggs
e2f7de320c 8133022: Instant.toEpochMilli() silently overflows
Reviewed-by: lancea, chegar, simonis, dfuchs, igerasim
2015-08-06 14:35:04 -04:00
Naoto Sato
9166dacb21 8129881: JDK-8008577 breaks Nashorn test
8130845: Change to CLDR Locale data in JDK 9 b71 causes SimpleDateFormat parsing errors
8132125: German (Switzerland) formatting broken if CLDR Locale Data is used

Reviewed-by: tbell, okutsu
2015-08-03 21:47:50 -07:00
Naoto Sato
a693ebca66 8008577: Use CLDR Locale Data by Default
Reviewed-by: erikj, okutsu
2015-06-24 16:42:11 -07:00