X-Received: by 10.66.78.6 with SMTP id x6mr310795paw.42.1355861858128; Tue, 18 Dec 2012 12:17:38 -0800 (PST) Received: by 10.50.0.204 with SMTP id 12mr1807922igg.9.1355861857841; Tue, 18 Dec 2012 12:17:37 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!169.228.66.3.MISMATCH!ihnp4.UCSD.Edu!newsfeed.news.ucla.edu!usenet.stanford.edu!f6no377317pbd.1!news-out.google.com!6ni51708pbd.1!nntp.google.com!f6no377313pbd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Tue, 18 Dec 2012 12:17:37 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.207.136.138; posting-account=1EdYswkAAADb62_RDmxVTdwsIw8Cb0SI NNTP-Posting-Host: 24.207.136.138 References: <909022a2-ead4-45e6-9f43-79b5013e04ee@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <67da22eb-42d8-40bf-b172-9aac1eef268e@googlegroups.com> Subject: Re: Need clarification on Object.equals. From: plewto@gmail.com Injection-Date: Tue, 18 Dec 2012 20:17:38 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:20473 On Tuesday, December 18, 2012 2:14:58 PM UTC-6, ple...@gmail.com wrote: > On Tuesday, December 18, 2012 1:01:51 PM UTC-6, David Lamb wrote: >=20 > > On 18/12/2012 1:48 PM, p...mail.com wrote: >=20 > >=20 >=20 > > > On Tuesday, December 18, 2012 12:24:44 PM UTC-6, markspace wrote: >=20 > >=20 >=20 > > >> Show us the implementation of equals() for Node (and probably Gate t= oo, >=20 > >=20 >=20 > > >> that version of equals() could also be borked in the example you gav= e) >=20 > >=20 >=20 > > >> and we'll point out the error. >=20 > >=20 >=20 > > > >=20 > >=20 >=20 > > > It is complex because it is a large application. I can either post th= e several hundred lines >=20 > >=20 >=20 > > > of source or the the 6 which adequately illustrates the point. Node= =20 >=20 > >=20 >=20 > > does not implement equals >=20 > >=20 >=20 > > > at all as you say >=20 > >=20 >=20 > >=20 >=20 > >=20 >=20 > > Roedy suggested Gate, not Node, might implement "equals". Does it? >=20 > >=20 >=20 > >=20 >=20 > >=20 >=20 > > There's likely not much people can do to help without more context. The= =20 >=20 > >=20 >=20 > > "6 lines" don't adequately "illustrate the point" because from them=20 >=20 > >=20 >=20 > > alone nobody can say for sure what your problem is. Roedy's guess might= =20 >=20 > >=20 >=20 > > be the best advice you're going to get. >=20 >=20 >=20 > Yes I understand that. In fact, as I pointed out in a subsequent post, no= ne of my code defines equals, Node was however extending AbstractSet which = does redefine it. Really All I was looking for was a general direction I mi= ght look and not to burden anyone with large blocks of code. Node is 212 li= nes, Gate is 67, Monitor another 85, none of which even once mentions the w= ord "equals" =20 >=20 >=20 >=20 > My issue with Roedy's response was not the helpful suggestion to look at = super classes but rather that it comes off as lecturing, and frankly rather= condescending. Im sorry I meant markspace's responce not Roedy's