From 75a3cf4e193d1654be0c74cefa19eaaa41e1aafe Mon Sep 17 00:00:00 2001 From: Werner Dietl Date: Tue, 17 Dec 2024 13:38:26 -0500 Subject: [PATCH] Fix stack overflow Co-authored-by: Chris Povirk --- src/java.base/share/classes/java/util/Objects.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java.base/share/classes/java/util/Objects.java b/src/java.base/share/classes/java/util/Objects.java index 9e94af1ee77..472531663c9 100644 --- a/src/java.base/share/classes/java/util/Objects.java +++ b/src/java.base/share/classes/java/util/Objects.java @@ -69,7 +69,7 @@ public static boolean equals( @Nullable Object a, @Nullable Object b) { // Define and annotate an overload that is unique to j2cl: b/201433789 public static boolean equals( @Nullable String a, @Nullable String b) { - return equals(a, b); + return equals((Object) a, b); } /**