8233621: Mismatch in jsse.enableMFLNExtension property name
authorxuelei
Fri, 08 Nov 2019 18:35:33 -0800
changeset 58998 9e2f184eac99
parent 58991 90cf1d4e712f
child 58999 6bc29ebe053e
8233621: Mismatch in jsse.enableMFLNExtension property name Reviewed-by: mullan
src/java.base/share/classes/sun/security/ssl/SSLExtension.java
--- a/src/java.base/share/classes/sun/security/ssl/SSLExtension.java	Fri Nov 08 16:53:57 2019 +0800
+++ b/src/java.base/share/classes/sun/security/ssl/SSLExtension.java	Fri Nov 08 18:35:33 2019 -0800
@@ -696,8 +696,18 @@
             }
 
             // To switch off the max_fragment_length extension.
+            //
+            // Note that "jsse.enableMFLNExtension" is the CSR approved
+            // property name.  However, "jsse.enableMFLExtension" was used
+            // in the original implementation.  Temporarily, if either of
+            // the two properties set to true, the extension is switch on.
+            // We may remove the "jsse.enableMFLExtension" property in the
+            // future.  Please don't continue to use the misspelling property.
             enableExtension =
-                Utilities.getBooleanProperty("jsse.enableMFLExtension", false);
+                Utilities.getBooleanProperty(
+                        "jsse.enableMFLNExtension", false) ||
+                Utilities.getBooleanProperty(
+                        "jsse.enableMFLExtension", false);
             if (!enableExtension) {
                 extensions.remove(CH_MAX_FRAGMENT_LENGTH);
             }