70 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
a693ebca66 8008577: Use CLDR Locale Data by Default
Reviewed-by: erikj, okutsu
2015-06-24 16:42:11 -07:00
Peter Levart
1c2084bafb 8079063: ZoneOffsetTransitionRule.of should throw IAE for non-zero nanoseconds
Reviewed-by: rriggs, scolebourne
2015-06-04 10:58:17 +02:00
Roger Riggs
642e0ac6f1 8078369: [testbug] java/time/tck/java/time/TCKOffsetTime[now] fails on slow devices
Increase the tolerance between successive calls to now() to 20sec

Reviewed-by: scolebourne, sherman, dfuchs
2015-04-27 16:31:47 -04:00
Xueming Shen
011b337a51 8074406: DateTimeFormatter.appendZoneOrOffsetId() fails to resolve a ZoneOffset for OffsetDateTime
To support resolve OffsetDateTime from DTF.appendZoneOrOffset()

Reviewed-by: rriggs
2015-03-07 10:11:03 -08:00
Roger Riggs
ddb472a4dc 8068278: ArrayIndexOutOfBoundsException instead of DateTimeException in j.t.chrono.JapaneseChronology.eraOf()
Corrected era range check

Reviewed-by: mchung, lancea
2015-02-03 14:39:57 -05:00
Daniel Fuchs
b5f5424c83 8068730: Increase the precision of the implementation of java.time.Clock.systemUTC()
Changes the implementation of java.time.Clock.systemUTC() to take advantage of the maximum resolution of the underlying native clock on which System.currentTimeMillis() is based.

Reviewed-by: dholmes, rriggs, scolebourne, sla
2015-01-28 17:48:59 +01:00
Stephen Colebourne
0a8fa1b525 8046416: Unable to parse an Instant from fields
Fix Instant parsing

Reviewed-by: rriggs
2014-06-11 08:25:33 +01:00
Roger Riggs
82f7b6b88e 8038823: Missing @Test annotation and copyright in java.time tests
Reviewed-by: lancea
2014-04-18 15:37:22 -04:00
Stephen Colebourne
efc809c16a 8036818: DateTimeFormatter withResolverFields() fails to accept null
Reviewed-by: chegar, rriggs
2014-03-06 17:31:07 +00:00
Stephen Colebourne
eb34c3be0c 8035099: LocalTime.with(MILLI_OF_DAY/MICRO_OF_DAY) incorrect
Correctly zeros low order bits of time when setting milli/micro

Reviewed-by: alanb, rriggs
2014-03-06 17:16:20 +00:00
Stephen Colebourne
88af481e90 8032491: DateTimeFormatter fixed width adjacent value parsing does not match spec
Reviewed-by: lancea, rriggs
2014-03-29 15:01:47 -04:00
Stephen Colebourne
a25bcf0ac0 8033662: DateTimeFormatter parsing ignores withZone()
To include the set "zone" in resolved result

Reviewed-by: sherman, chegar
2014-03-24 12:47:02 -07:00
Roger Riggs
2b6adb0b44 8029551: Add value-type notice to java.time classes
Add warning about identity of value types and reference to ValueBased.html

Reviewed-by: briangoetz, smarks, scolebourne
2013-12-11 16:52:41 -05:00
Roger Riggs
10db5543da 8030002: Enhance deserialization using readObject
Reviewed-by: sherman, chegar, scolebourne
2013-12-20 13:06:23 -05:00
Roger Riggs
eeaf2206bb 8024686: Cleanup of java.time serialization source
Optimize serialized form of OffsetTime, OffsetDateTime; correct order of modifiers

Reviewed-by: sherman
2013-10-22 15:03:12 -04:00
Xueming Shen
73ccbeb833 8025971: Remove ZoneId.OLD_SHORT_IDS
8026197: Slow reading tzdb.dat if the JRE is on a high-latency, remote file system

Removed the compatiblity old short-ids mapping

Reviewed-by: okutsu
2013-10-17 23:43:08 -07:00
Roger Riggs
6532244455 8025722: TemporalAdjusters and TemporalQueries
Move static from interfaces methods to supporting classes

Reviewed-by: sherman
2013-10-15 13:14:03 -04:00