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.

Masayoshi

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

Reply via email to