[threeten-dev] hg: threeten/threeten/jdk: #245 Add UnsupportedTemporalElementException

roger.riggs at oracle.com roger.riggs at oracle.com
Tue Feb 26 20:28:15 PST 2013


Changeset: 343603bd7661
Author:    rriggs
Date:      2013-02-26 23:27 -0500
URL:       http://hg.openjdk.java.net/threeten/threeten/jdk/rev/343603bd7661

#245 Add UnsupportedTemporalElementException
Change DateTimeExceptions to UnsupportedTemporalTypeException where
the usage indicates incorrect ChronoUnit or ChronoField parameter values.

Fixed JapaneseEra.valueOf to throw IllegalArgumentException
to be the same as the other Era Enums

Corrected links to JapaneseEras in JapaneseChronology

Added tests for bad Eras to TestHijrahChronology, TestJapaneseChronology,
TestMinguoChronology, TestThaiBuddhistChronology.

! src/share/classes/java/time/DayOfWeek.java
! src/share/classes/java/time/Duration.java
! src/share/classes/java/time/Instant.java
! src/share/classes/java/time/LocalDate.java
! src/share/classes/java/time/LocalDateTime.java
! src/share/classes/java/time/LocalTime.java
! src/share/classes/java/time/Month.java
! src/share/classes/java/time/MonthDay.java
! src/share/classes/java/time/OffsetDateTime.java
! src/share/classes/java/time/OffsetTime.java
! src/share/classes/java/time/Period.java
! src/share/classes/java/time/Year.java
! src/share/classes/java/time/YearMonth.java
! src/share/classes/java/time/ZoneId.java
! src/share/classes/java/time/ZoneOffset.java
! src/share/classes/java/time/ZonedDateTime.java
! src/share/classes/java/time/chrono/ChronoDateImpl.java
! src/share/classes/java/time/chrono/ChronoLocalDate.java
! src/share/classes/java/time/chrono/ChronoZonedDateTime.java
! src/share/classes/java/time/chrono/Chronology.java
! src/share/classes/java/time/chrono/Era.java
! src/share/classes/java/time/chrono/HijrahChronology.java
! src/share/classes/java/time/chrono/HijrahDate.java
! src/share/classes/java/time/chrono/IsoChronology.java
! src/share/classes/java/time/chrono/JapaneseChronology.java
! src/share/classes/java/time/chrono/JapaneseDate.java
! src/share/classes/java/time/chrono/JapaneseEra.java
! src/share/classes/java/time/chrono/MinguoChronology.java
! src/share/classes/java/time/chrono/MinguoDate.java
! src/share/classes/java/time/chrono/ThaiBuddhistChronology.java
! src/share/classes/java/time/chrono/ThaiBuddhistDate.java
! src/share/classes/java/time/format/DateTimeBuilder.java
! src/share/classes/java/time/format/DateTimeFormatterBuilder.java
! src/share/classes/java/time/format/DateTimeParseContext.java
! src/share/classes/java/time/format/DateTimeTextProvider.java
! src/share/classes/java/time/temporal/IsoFields.java
! src/share/classes/java/time/temporal/JulianFields.java
! src/share/classes/java/time/temporal/Temporal.java
! src/share/classes/java/time/temporal/TemporalAccessor.java
! src/share/classes/java/time/temporal/TemporalAmount.java
! src/share/classes/java/time/temporal/TemporalField.java
! src/share/classes/java/time/temporal/TemporalUnit.java
+ src/share/classes/java/time/temporal/UnsupportedTemporalTypeException.java
! test/java/time/tck/java/time/TestIsoChronology.java
! test/java/time/tck/java/time/chrono/CopticChronology.java
! test/java/time/tck/java/time/chrono/CopticDate.java
! test/java/time/tck/java/time/chrono/TestHijrahChronology.java
! test/java/time/tck/java/time/chrono/TestJapaneseChronology.java
! test/java/time/tck/java/time/chrono/TestMinguoChronology.java
! test/java/time/tck/java/time/chrono/TestThaiBuddhistChronology.java
! test/java/time/test/java/time/format/TestNonIsoFormatter.java
! test/java/time/test/java/time/temporal/MockFieldValue.java



More information about the threeten-dev mailing list