Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
None
-
None
-
None
Description
I found in the POM file that the spring framework version used is 5, which requires version 1.8 JAVA. However, the JAVA version checking method accepts versions 1.6 and 1.7 (file -> https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/util/OpenmrsUtil.java).
The problem is in the method:
public static void validateJavaVersion() {
// check whether the current JVM version is at least Java 6
if (JdkVersion.getJavaVersion().matches("1.(0|1|2|3|4|5).(.*)"))
}
Proposed fix:
public static void validateJavaVersion() {
// check whether the current JVM version is at least Java 8
if (JdkVersion.getJavaVersion().matches("1.(0|1|2|3|4|5|6|7).(.*)"))
}