The Artima Developer Community
Sponsored Link

Design Forum
Reopening the Object.equals() debate

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Gili T.

Posts: 6
Nickname: cowwoc
Registered: Jul, 2007

Reopening the Object.equals() debate Posted: Jul 24, 2007 9:01 PM
Reply to this message Reply
Advertisement
Hi,

I'd like to fire this question to Joshua Bloch but seeing as I can't find his email address I am hoping you guys will take a swing at it.

In Effective Java Item 7 Joshua writes "It turns out that this is a fundamental problem of equivalence relations in object-oriented languages. There is simply no way to extend an instantiable class and add an aspect while preserving the equals contract."

This has been discussed further here:
1) http://www.codeproject.com/useritems/EmailWithJoshuaBloch.asp
2) http://www.ddj.com/dept/java/184405053

While Joshua refutes the suggestion in the first article it doesn't seem like he has ever addressed the second proposal (the blindlyEquals() method). I was wondering what you thought of tihs approach, does it end the debate once and for all or is it still missing something? And secondly, does anyone have Joshua's Google email handy? :)

Thank you,
Gili

Topic: Useful design software Previous Topic   Next Topic Topic: Mobile Video Streaming Testing

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use