summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorDamjan Jovanovic <damjan@apache.org>2018-04-15 15:00:46 +0000
committerDamjan Jovanovic <damjan@apache.org>2018-04-15 15:00:46 +0000
commit5d4ce3e29c7aab3498e0955485d8707a8f5fb456 (patch)
tree12c0c24ce8e3ce075a3ed5fc02621c594d243c6c /jvmfwk
parent5c83d202807d82e3cf5b2962e81ac51501f73221 (diff)
Allow the Java version suffix (eg. the 162 in 1.8.0_162) to be
3 digits long. Patch by: me
Notes
Notes: prefer: 52ffad9bb7be800790de6d918154dbeade88cadd
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
index a9c98ddae024..c1872f0d61f4 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
@@ -144,8 +144,9 @@ bool SunVersion::init(const char *szVersion)
if ( ! isdigit(*pCur))
{
//1.4.1_01-, 1.4.1_01a, the numerical part may only be 2 chars.
+ //1.7.0_161, 1.8.0_162, it's as long as 3 chars in later Java version.
int len = pCur - pLast;
- if (len > 2)
+ if (len > 3)
return false;
//we've got the update: 01, 02 etc
strncpy(buf, pLast, len);