Skip to content

Commit

Permalink
Fix stack overflow
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Povirk <[email protected]>
  • Loading branch information
wmdietl and cpovirk authored Dec 17, 2024
1 parent efbb1e3 commit 75a3cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/util/Objects.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 75a3cf4

Please sign in to comment.