[threeten-dev] RFR get properties from lib/calendars.properties

Masayoshi Okutsu masayoshi.okutsu at oracle.com
Wed Jan 23 21:02:38 PST 2013


I've change the exception handling so that you can expect "regular" 
exceptions. I don't see much value to this change, though.

Here's the new webrev.

http://cr.openjdk.java.net/~okutsu/310/calendarprops/webrev.01/

Thanks,
Masayoshi

On 1/24/2013 8:28 AM, Masayoshi Okutsu wrote:
> During loading properties, it may throw either IOException or 
> IllegalArgumentException. The caller should catch RuntimeException and 
> get its Cause and determine what to do.
>
> Masayoshi
>
> On 1/23/2013 11:24 PM, Roger Riggs wrote:
>> Hi,
>>
>> Thanks, this provides the function needed for Hijrah calendar 
>> properties.
>>
>> In the rare case that there is an error in calendars.properties, will 
>> the RuntimeException
>> provide enough information to diagnose the problem?   Is this a case 
>> where
>> the error should be logged to the PlatformLogger?
>> Perhaps the throw of the RuntimeException could include a message
>> "Configuration error in calendars.properties".
>>
>> In some other cases, I have seen an InternalError thrown 
>> (Currency.java).
>>
>> Thanks, Roger
>>
>>
>>
>> On 1/23/2013 3:30 AM, Masayoshi Okutsu wrote:
>>> Per Roger's request, I've created a static method for getting a 
>>> Properties from <java.home>/lib/calendars.properties. The plan is to 
>>> put Hijrah calendar properties in the properties file.
>>>
>>> http://cr.openjdk.java.net/~okutsu/310/calendarprops/webrev.00/
>>>
>>> Thanks,
>>> Masayoshi
>>>
>>
>



More information about the threeten-dev mailing list