Index: src/org/springframework/core/JdkVersion.java =================================================================== --- src/org/springframework/core/JdkVersion.java (revision 17172) +++ src/org/springframework/core/JdkVersion.java (working copy) @@ -54,6 +54,10 @@ */ public static final int JAVA_17 = 4; + /** + * Constant identifying the 1.8 JVM (Java 8). + */ + public static final int JAVA_18 = 5; private static final String javaVersion; @@ -62,7 +66,11 @@ static { javaVersion = System.getProperty("java.version"); // version String should look like "1.4.2_10" - if (javaVersion.indexOf("1.7.") != -1) { + + if (javaVersion.indexOf("1.8.") != -1) { + majorJavaVersion = JAVA_18; + } + else if (javaVersion.indexOf("1.7.") != -1) { majorJavaVersion = JAVA_17; } else if (javaVersion.indexOf("1.6.") != -1) {