[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #7939] String comparisons that use == or != instead of
From: |
Andrew John Hughes |
Subject: |
[commit-cp] [bugs #7939] String comparisons that use == or != instead of equals() |
Date: |
Wed, 29 Dec 2004 19:37:19 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Epiphany/1.0.8 |
This mail is an automated notification from the bugs tracker
of the project: classpath.
/**************************************************************************/
[bugs #7939] Latest Modifications:
Changes by:
Andrew John Hughes <address@hidden>
'Date:
Thu 12/30/2004 at 00:10 (GMT)
------------------ Additional Follow-up Comments ----------------------------
In java.util.Locale, strings are interned so == can be used.
/**************************************************************************/
[bugs #7939] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=7939>
Project: classpath
Submitted by: 0
On: Sun 02/29/2004 at 05:33
Category: None
Severity: 5 - Average
Resolution: Fixed
Privacy: Public
Assigned to: None
Status: Closed
Platform Version: None
Summary: String comparisons that use == or != instead of equals()
Original Submission: The following lines perform comparisons with String
literals using == or != instead of equals(). This is not guaranteed to produce
the proper results when the Strings are equal but not the exact same object.
gnu/java/net/protocol/jar/Handler.java : 102
java/net/URLStreamHandler.java : 407
java/nio/ByteOrder.java : 55
java/util/Locale.java : 439
java/util/Locale.java : 475
Follow-up Comments
------------------
-------------------------------------------------------
Date: Thu 12/30/2004 at 00:10 By: Andrew John Hughes <gnu_andrew>
In java.util.Locale, strings are interned so == can be used.
-------------------------------------------------------
Date: Fri 03/12/2004 at 12:44 By: Mark Wielaard <mark>
I believe all this issues have been fixed now.
In the future it helps to include a real patch and/or point out the precise
version of the file in question.
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=7939>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bugs #7939] String comparisons that use == or != instead of equals(),
Andrew John Hughes <=