[threeten-dev] default ZoneRulesProvider and the system property for it.

Roger Riggs Roger.Riggs at oracle.com
Fri Jan 25 06:12:52 PST 2013


Hi Sherman,

Why the use of reflection to instantiate the provider?  Isn't 
class.newInstance() sufficient.

Also, is it standard practice to put these inside doPrivileged?  It 
would seem
to be a security risk.  I would want the constructor to have to do its 
own doPriv
to get elevated access to files, etc.

Thanks, Roger


On 1/25/2013 3:08 AM, Xueming Shen wrote:
> Stephen,
>
> Here is the webrev to define the default zone-rule provider and introduce
> in the system property java.time.zone.DefaultZoneRulesProvider.
>
> http://cr.openjdk.java.net/~sherman/jdk8_threeten/zrProvider
>
> -sherman



More information about the threeten-dev mailing list