--- old/src/hotspot/share/runtime/java.cpp 2019-11-07 21:19:20.739169500 +0900 +++ new/src/hotspot/share/runtime/java.cpp 2019-11-07 21:19:20.515796300 +0900 @@ -744,13 +744,12 @@ &buffer[index], buflen - index, "%d.%d", _major, _minor); if (rc == -1) return; index += rc; - if (_security > 0) { - rc = jio_snprintf(&buffer[index], buflen - index, ".%d", _security); + if (_patch > 0) { + rc = jio_snprintf(&buffer[index], buflen - index, ".%d.%d", _security, _patch); if (rc == -1) return; index += rc; - } - if (_patch > 0) { - rc = jio_snprintf(&buffer[index], buflen - index, ".%d", _patch); + } else if (_security > 0) { + rc = jio_snprintf(&buffer[index], buflen - index, ".%d", _security); if (rc == -1) return; index += rc; }