changeset 50829:5e7174bf1259

8203686: Add JDK 11 major version to javax/net/ssl/compatibility/JdkRelease.java Summary: javax/net/ssl/compatibility/JdkRelease.java adds major version JDK 11 Reviewed-by: xuelei
author jjiang
date Wed, 23 May 2018 18:18:33 -0700
parents 317a8688db78
children b2a93f8a6aa9
files test/jdk/javax/net/ssl/compatibility/JdkRelease.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/javax/net/ssl/compatibility/JdkRelease.java	Thu May 24 00:37:29 2018 +0000
+++ b/test/jdk/javax/net/ssl/compatibility/JdkRelease.java	Wed May 23 18:18:33 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,8 @@
     JDK7(7, "1.7"),
     JDK8(8, "1.8"),
     JDK9(9, "9"),
-    JDK10(10, "10");
+    JDK10(10, "10"),
+    JDK11(11, "11");
 
     public final int sequence;
     public final String release;
@@ -51,6 +52,8 @@
             return JDK9;
         } else if (jdkVersion.startsWith(JDK10.release)) {
             return JDK10;
+        } else if (jdkVersion.startsWith(JDK11.release)) {
+            return JDK11;
         }
 
         return null;