summaryrefslogtreecommitdiffstats
path: root/harmony-tests
diff options
context:
space:
mode:
Diffstat (limited to 'harmony-tests')
-rw-r--r--harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest1.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest1.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest1.java
index df5f792..27d8b33 100644
--- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest1.java
+++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest1.java
@@ -275,8 +275,6 @@ public class SerializationStressTest1 extends SerializationStressTest {
private static class MyException extends java.io.IOException {
}
- ;
-
// A primitive instance variable exposes a bug in the serialization
// spec.
// Primitive instance variables are written without primitive data tags
@@ -347,8 +345,6 @@ public class SerializationStressTest1 extends SerializationStressTest {
private Object notSerializable = new Object();
}
- ;
-
public boolean anInstanceVar = false;
public MyUnserializableExceptionWhenDumping() {
@@ -1436,10 +1432,10 @@ public class SerializationStressTest1 extends SerializationStressTest {
boolean causedException = false;
try {
dump(objToSave);
- } catch (java.io.StreamCorruptedException e) {
+ } catch (MyUnserializableExceptionWhenDumping.MyException e) {
causedException = true;
}
- ;
+
assertTrue("Should have caused an exception when dumping",
causedException);
// As the stream is corrupted, reading the stream will have