[threeten-dev] [threeten-develop] Draft of new UnsupportedTemporalTypeException update

roger riggs roger.riggs at oracle.com
Tue Feb 26 10:18:28 PST 2013


Hi Stephen,

Thanks for the review, all of the comments have been addressed.

javadoc: 
http://cr.openjdk.java.net/~rriggs/javadoc-temporaltypeexception-245/
webrev: http://cr.openjdk.java.net/~rriggs/webrev-temporaltypeexception-245/

On 2/25/2013 5:39 PM, Stephen Colebourne wrote:
> On 25 February 2013 19:51, roger riggs <roger.riggs at oracle.com> wrote:
>> javadoc:
>> http://cr.openjdk.java.net/~rriggs/javadoc-temporaltypeexception-245/
>> webrev: http://cr.openjdk.java.net/~rriggs/webrev-temporaltypeexception-245/
> Much closer to what I was expecting ;-)
>
> LocalDateTime almost certainly wants some Javadoc additions of UTTE.
Added @throws UTTE for methods with ChronoField arguments.
>
> None of the changes in HijrahChronology look right to me.
Only the exception for Era must be HijrahEra remains.
>
> The check for era is FooEra should not be UTTE as UTTE needs to be
> strictly scoped. (comment applies to all chronos) If you are desparate
> to use a JDK exception, then ClassCastException would be OK there.
ok
>
> HijrahEra/IsoEra/MinguoEra has an import but no references to it.
removed
>
> In general, such as on TemporalAmount, DateTimeException should be
> phrased in the general "throws DTE if unable to obtain the foo",
> whereas UTTE is more specific "throws UTTE if the field/unit is
> unsupported"
ok, TemporalAmount.get now reads:
       DateTimeException if a value for the unit cannot be obtained
>
> CopticDate/CopticEra still have too many UTTE.
Oops, gone now.

Thanks, Roger


More information about the threeten-dev mailing list