changeset 12011:e895d4e7c2ec

8166389: [TEST_BUG] closed/java/security/Security/ReadProp/ReadProp.sh failing Reviewed-by: coffeys
author robm
date Tue, 20 Sep 2016 16:54:21 +0100
parents 17a829050ae5
children f91e3aa155b3
files src/share/classes/sun/security/util/DisabledAlgorithmConstraints.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/util/DisabledAlgorithmConstraints.java	Mon Sep 19 13:00:13 2016 -0700
+++ b/src/share/classes/sun/security/util/DisabledAlgorithmConstraints.java	Tue Sep 20 16:54:21 2016 +0100
@@ -261,9 +261,9 @@
                                     toUpperCase(Locale.ENGLISH));
                     policy = constraintEntry.substring(space + 1);
                 } else {
-                    constraintsMap.computeIfAbsent(
+                    constraintsMap.putIfAbsent(
                             constraintEntry.toUpperCase(Locale.ENGLISH),
-                            k -> new HashSet<>());
+                            new HashSet<>());
                     continue;
                 }