JDK-8234591 : [11u] Build with old C compiler broken by 8223490
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 11.0.6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-21
  • Updated: 2020-02-17
  • Resolved: 2019-11-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 Other
11.0.6 b05Fixed openjdk8u242Fixed
Related Reports
Relates :  
Relates :  
Description
Old C compilers don't allow declarations in for loops:
TimeZone_md.c:139:9: error: ���for��� loop initial declarations are only allowed in C99 mode
         for (unsigned int i = 0; i < sizeof (popularZones) / sizeof (popularZones[0]); i++) {

Such old compilers may be no longer officially supported, but it can be fixed very easily.

Comments
Fix request 8u Follow up to JDK-8223490 to ensure compatibility with C89 compilers. Patch applies cleanly
10-12-2019

URL: https://hg.openjdk.java.net/jdk-updates/jdk11u/rev/fa03bfb6686d User: goetz Date: 2019-11-27 09:47:47 +0000
27-11-2019

URL: https://hg.openjdk.java.net/jdk-updates/jdk11u-dev/rev/fa03bfb6686d User: mdoerr Date: 2019-11-22 09:07:40 +0000
22-11-2019

Fix request jdk11u 11u-only fix to enable build with old compilers again. Review thread: http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-November/002157.html
21-11-2019