This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.nio.ByteOrder
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 28 Feb 2004 22:17:52 +0100
- Subject: FYI: Patch: java.nio.ByteOrder
Hi list,
I just commited the attached patch to fix a little bug in java.nio.
Michael
2004-02-28 Michael Koch <konqueror@gmx.de>
* java/nio/ByteOrder.java
(nativeOrder): Use equals() to compare strings.
Index: java/nio/ByteOrder.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/ByteOrder.java,v
retrieving revision 1.3
diff -u -b -B -r1.3 ByteOrder.java
--- java/nio/ByteOrder.java 21 Oct 2003 12:55:02 -0000 1.3
+++ java/nio/ByteOrder.java 28 Feb 2004 21:15:17 -0000
@@ -63,7 +63,7 @@
*/
public static ByteOrder nativeOrder ()
{
- return (System.getProperty ("gnu.cpu.endian") == "big"
+ return (System.getProperty ("gnu.cpu.endian").equals("big")
? BIG_ENDIAN : LITTLE_ENDIAN);
}