hotspot/src/share/vm/runtime/java.cpp
void JDK_Version::fully_initialize(
uint8_t major, uint8_t minor, uint8_t micro, uint8_t update) {
// This is only called when current is less than 1.6 and we've gotten
// far enough in the initialization to determine the exact version.
assert(major < 6, "not needed for JDK version >= 6");
assert(is_partially_initialized(), "must not initialize");
{- -------------------------------------------
(1) バージョンが 4 以前の場合は, 1.x.x という形に変更
---------------------------------------- -}
if (major < 5) {
// JDK verison sequence: 1.2.x, 1.3.x, 1.4.x, 5.0.x, 6.0.x, etc.
micro = minor;
minor = major;
major = 1;
}
{- -------------------------------------------
(1) 結果を _current に設定する.
---------------------------------------- -}
_current = JDK_Version(major, minor, micro, update);
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.