Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6385
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail |
|---|---|
| Date | Thu, 21 Jul 2011 20:36:54 -0400 |
| From | Arne Vajhøj <arne@vajhoej.dk> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: The behavior of "equals" method of Arrays.asList() implementation |
| References | <b30a98ec-acc8-4e7b-bb9d-0de48a554d07@g2g2000vbl.googlegroups.com> <safe-20110628121412@ram.dialup.fu-berlin.de> |
| In-Reply-To | <safe-20110628121412@ram.dialup.fu-berlin.de> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Lines | 26 |
| Message-ID | <4e28c628$0$308$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
| NNTP-Posting-Host | 72.192.23.157 |
| X-Trace | news.sunsite.dk DXC=0CK?HHnPOi<=M\fUi`VZV<YSB=nbEKnk;aJl`]9B1PL1JPe3\kP5EU1KBm9cfh9BS4M2;kT<[:>[1An^K[`\h?@;03D`;QO^I93 |
| X-Complaints-To | staff@sunsite.dk |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6385 |
Show key headers only | View raw
On 6/28/2011 6:18 AM, Stefan Ram wrote: > Alex J<vstrength@gmail.com> writes: >> So the first question is: whether it is safe to use equals for *all* >> the JDK's collections? > > What is »safe« supposed to mean in this case? > > The »equals« methods of the collections behave > as documented in their Java SE docs, just like > every other collection method does. The obvious answer. >> The second question is whether JVM adds "hidden" implementation in >> certain places > > The compiler sometimes adds constructors so that > the implementation behaves as specified in the > JLS, but never »equals« methods. The compiler is not the JVM, but your interpretation may be correct that his question included compiler. Arne
Back to comp.lang.java.programmer | Previous | Next | Find similar
Re: The behavior of "equals" method of Arrays.asList() implementation Arne Vajhøj <arne@vajhoej.dk> - 2011-07-21 20:36 -0400
csiph-web