Skip to content

Do not alias a Java IsEqual to equal?#6000

Merged
headius merged 1 commit intojruby:masterfrom
headius:no_override_equal
Dec 12, 2019
Merged

Do not alias a Java IsEqual to equal?#6000
headius merged 1 commit intojruby:masterfrom
headius:no_override_equal

Conversation

@headius
Copy link
Member

@headius headius commented Dec 12, 2019

The equal? method should always be identity equality and not get overridden if a class defines an isEqual method as in Joda's AbstractPartial does.

Fixes #5990.

@headius headius added this to the JRuby 9.2.10.0 milestone Dec 12, 2019
@headius headius merged commit 50477d9 into jruby:master Dec 12, 2019
@headius headius deleted the no_override_equal branch December 12, 2019 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The .equal? method should not be mapped to .isEqual for Java objects (e.g. Joda LocalDate)

1 participant