OpenSearch/libs
Ioannis Kakavas 3714cb63da Allow parsing the value of java.version sysprop (#44017)
We often start testing with early access versions of new Java
versions and this have caused minor issues in our tests
(i.e. #43141) because the version string that the JVM reports
cannot be parsed as it ends with the string -ea.

This commit changes how we parse and compare Java versions to
allow correct parsing and comparison of the output of java.version
system property that might include an additional alphanumeric
part after the version numbers
 (see [JEP 223[(https://openjdk.java.net/jeps/223)). In short it 
handles a version number part, like before, but additionally a 
PRE part that matches ([a-zA-Z0-9]+).

It also changes a number of tests that would attempt to parse
java.specification.version in order to get the full version
of Java. java.specification.version only contains the major
version and is thus inappropriate when trying to compare against
a version that might contain a minor, patch or an early access
part. We know parse java.version that can be consistently
parsed.

Resolves #43141
2019-07-22 20:14:56 +03:00
..
cli [Backport] Remove dependency substitutions 7.x (#42866) 2019-06-04 13:50:23 -07:00
core Allow parsing the value of java.version sysprop (#44017) 2019-07-22 20:14:56 +03:00
dissect Eclipse libs projects setup fix (#42852) 2019-06-04 13:52:41 -07:00
geo Geo: add validator that only checks altitude (#43893) 2019-07-10 16:55:03 -04:00
grok Upgrade jcodings dependency to 1.0.44 (#43334) 2019-06-26 10:03:40 +02:00
nio Ignore failures to set socket options on Mac (#44355) 2019-07-17 18:51:25 +02:00
plugin-classloader [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
secure-sm Eclipse libs projects setup fix (#42852) 2019-06-04 13:52:41 -07:00
ssl-config Fix for PemTrustConfigTests.testTrustConfigReloadsFileContents failure (#43539) (#43613) 2019-06-26 13:32:01 +10:00
x-content Add Map to XContentParser Wrapper (#44036) 2019-07-11 09:38:31 -04:00
build.gradle [Backport] Remove dependency substitutions 7.x (#42866) 2019-06-04 13:50:23 -07:00