+{"files":[{"patch":"@@ -2,1 +2,1 @@\n- * Copyright (c) 1996, 2021, Oracle and\/or its affiliates. All rights reserved.\n+ * Copyright (c) 1996, 2022, Oracle and\/or its affiliates. All rights reserved.\n@@ -1152,1 +1152,1 @@\n- Service prevAliasService = legacyMap.get(aliasAlg);\n+ Service prevAliasService = legacyMap.get(aliasKey);\n","filename":"src\/java.base\/share\/classes\/java\/security\/Provider.java","additions":2,"deletions":2,"binary":false,"changes":4,"status":"modified"},{"patch":"@@ -2,1 +2,1 @@\n- * Copyright (c) 2004, 2016, Oracle and\/or its affiliates. All rights reserved.\n+ * Copyright (c) 2004, 2022, Oracle and\/or its affiliates. All rights reserved.\n@@ -26,1 +26,1 @@\n- * @bug 5097015 8130181\n+ * @bug 5097015 8130181 8279222\n@@ -39,1 +39,2 @@\n- put(\"ALg.aliaS.MESSAGEdigest.Fu\", \"FoO\");\n+ \/\/ first assign the DEF alias to algorithm Foo\n+ put(\"ALg.aliaS.MESSAGEdigest.DEF\", \"FoO\");\n@@ -42,0 +43,2 @@\n+ \/\/ reassign the DEF alias to algorithm Bar\n+ put(\"ALg.aliaS.MESSAGEdigest.DEF\", \"Bar\");\n@@ -50,0 +53,1 @@\n+\n@@ -55,1 +59,9 @@\n- testService(p, \"MessageDigest\", \"fU\");\n+ if (s.toString().indexOf(\"DEF\") != -1) {\n+ throw new Exception(\"Old alias DEF should be removed\");\n+ }\n+\n+ \/\/ test Service alias DEF and its associated impl is Bar\n+ s = testService(p, \"MessageDigest\", \"DeF\");\n+ if (s.getAttribute(\"Xyz\") != null) {\n+ throw new Exception(\"DEF mapped to the wrong impl\");\n+ }\n","filename":"test\/jdk\/java\/security\/Provider\/CaseSensitiveServices.java","additions":16,"deletions":4,"binary":false,"changes":20,"status":"modified"}]}
0 commit comments