summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGeoff Berry <gcb@gnu.org>1999-03-06 18:11:17 +0000
committerGeoff Berry <gcb@gnu.org>1999-03-06 18:11:17 +0000
commite199387b971ca88fbd896993d7332049a968f0ea (patch)
treed1578839065449064c387eefa45012fbdcfcf688 /test
parent8731b8ca3aa4611d94332b8f9d4feeac6fef4ac2 (diff)
downloadclasspath-e199387b971ca88fbd896993d7332049a968f0ea.tar.gz
(runReadTest): Added 'L' to the end of literal long that is too big to
fit in an integer. JDK javac compiles without this, but it is illegal according to JLS. (main): Same as above.
Diffstat (limited to 'test')
-rw-r--r--test/java.io/DataInputOutputTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/java.io/DataInputOutputTest.java b/test/java.io/DataInputOutputTest.java
index 905efea5e..dcb6e9aec 100644
--- a/test/java.io/DataInputOutputTest.java
+++ b/test/java.io/DataInputOutputTest.java
@@ -87,7 +87,7 @@ runReadTest(String filename, int seq, String testname)
System.out.println("Failed to read int. Expected 8675309 and got " + i);
}
long l = dis.readLong();
- if (l != 696969696969)
+ if (l != 696969696969L)
{
passed = false;
System.out.println("Failed to read long. Expected 696969696969 and got " + l);
@@ -149,7 +149,7 @@ main(String[] argv)
dos.writeChar((char)'\uE2D2');
dos.writeShort((short)32000);
dos.writeInt((int)8675309);
- dos.writeLong((long)696969696969);
+ dos.writeLong(696969696969L);
dos.writeFloat((float)3.1415);
dos.writeDouble((double)999999999.999);
dos.writeUTF("Testing code is such a boring activity but it must be done");