Originally posted by Himadri Joshi:
Some research on our end suggests that such casting is not supported in higher version of jre.
That's because in
Java 5, Calendar.getTimeZone() does not return a SimpleTimeZone object. Note that the API documentation just says that it returns a TimeZone. Which subclass of class TimeZone it actually returns is not specified, so
you should not rely on it being a SimpleTimeZone.