openjdk8 update 8u232-b09-0ubuntu1~18.04.1 breaks Timestamp values for timezones that change DST observance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-8 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The testcase showing the issue:
import java.util.Calendar;
import java.util.
import java.util.TimeZone;
public class TZTest {
public static void main(String args[]) {
TimeZone tz = TimeZone.
}
}
The output for 1.8 and 11.0 is:
1.8.0_232-
11.0.5 ->-852040738877
note that there is one hour worth of difference between the two values. The value reported in 11.0.5 is the correct one (or, at least, the one that is compatible with all other jdk versions). You have to compile and execute the code with the same version for the issue to happen, i.e. compile with 1.8 and execute with 1.8 and then compile with 11 and execute with 11
As far as I know, Europe/Instanbul kept changing the DST observance rules. GregorianCalend
1943-01-01 12:01:01.123
1963-01-01 12:01:01.123
1979-01-01 12:01:01.123
1985-01-01 12:01:01.123
The upgrade happened on the 18th of December:
Start-Date: 2019-12-18 06:16:01
Commandline: /usr/bin/
Upgrade: openjdk-
End-Date: 2019-12-18 06:16:23
Applications using this patch will observe wrong data with unknown consequences.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: openjdk-8-jdk 8u232-b09-
ProcVersionSign
Uname: Linux 4.15.0-1065-oem x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Jan 10 16:53:07 2020
InstallationDate: Installed on 2019-12-18 (23 days ago)
InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20180608-09:38
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_IE.UTF-8
SHELL=/bin/bash
SourcePackage: openjdk-8
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: regression-security |
Status changed to 'Confirmed' because the bug affects multiple users.