lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@cs.put.poznan.pl>
Subject Re: svn commit: r1304019 - in /lucene/dev/trunk/lucene: core/src/test/org/apache/lucene/util/junitcompat/ test-framework/src/java/org/apache/lucene/util/
Date Thu, 22 Mar 2012 22:09:37 GMT
> // user.timezone is empty
> TimeZone old = TimeZone.getDefault(); // lets say en-US
> TimeZone.setDefault(something); // lets say en-UK
> ...
>
> TimeZone.setDefault(old); // restore the default en-US
>
> // now user.timezone is en-US (changed from nothing) as a side effect,
> even though we restored what we did

I didn't inspect in detail what TimeZone does in standard JDK (if it
resets the property on each setDefault or only if it's empty?). Feel
free to file an issue -- we may look into it in the future. I don't
think this is that crucial (?).

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message