[Review Request] 8008161: Regression: j.u.TimeZone.getAvailableIDs(rawOffset) returns non-sorted list

Masayoshi Okutsu masayoshi.okutsu at oracle.com
Wed Feb 13 23:46:44 UTC 2013

The change is fine. But it's neither the spec nor guaranteed in the 
previous implementation to return a sorted list. The caller needed to 
sort the return value if a sorted list is required.


On 2/14/2013 4:02 AM, Xueming Shen wrote:
> Hi,
> This is the "regression" triggered by my changeset
> 8007572: Replace existing jdk timezone data at <java.home>/lib/zi with 
> JSR310's tzdb.
> While the specification does not specify that the returned list from
> j.u.TimeZone.getAvailableIDs(rawOffset) should be sorted, this has
> been the implementation for years. It appears there are at least some
> tests may have dependency on this.
> Here is the webrev to restore the existing behavior.
> http://cr.openjdk.java.net/~sherman/8008161/webrev
> Please help review.
> Thanks!
> -Sherman

More information about the core-libs-dev mailing list