-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
7
-
generic
-
generic
This request is related to OJEC (Oracle Java ME Embedded Client) bug 12303199 SUNBT6995790 NLS: throw unsupported timezone exception when system timezone
is not in the supported list.
It appears that when the selected timezone is not in the available timezone
list, OJEC returns the GMT equivalent of it. There is a problem with this
approach, because this does not take DST into considerations. A zone with
DST cannot be represented with a GMT offset because the offset changes.
When the selected timezone is not in the list of supported timezone, OJEC/Java SE
should throw an unsupported timezone exception.
The responsible Java ME engineer evaluated:
@ returning GMT for an unsupported time zone is the behavior Java
@ SE (through Java SE 7) exhibits. Please file a bug against Java SE. This
@ issue will not be fixed in ME until it's fixed in SE (striving for SE/ME bug
@ for bug compatibility).
is not in the supported list.
It appears that when the selected timezone is not in the available timezone
list, OJEC returns the GMT equivalent of it. There is a problem with this
approach, because this does not take DST into considerations. A zone with
DST cannot be represented with a GMT offset because the offset changes.
When the selected timezone is not in the list of supported timezone, OJEC/Java SE
should throw an unsupported timezone exception.
The responsible Java ME engineer evaluated:
@ returning GMT for an unsupported time zone is the behavior Java
@ SE (through Java SE 7) exhibits. Please file a bug against Java SE. This
@ issue will not be fixed in ME until it's fixed in SE (striving for SE/ME bug
@ for bug compatibility).
- duplicates
-
JDK-4412864 (tz) RFE: another version of TimeZone.getTimeZone(String) without any fallback
- Closed