< prev index next >

test/java/util/EnumSet/BogusEnumSet.java

Print this page
rev 10985 : [mq]: 8061549

@@ -80,11 +80,11 @@
           // Demonstrates corruption
           System.out.println("Enum size: " + Thread.State.values().length); // 6
           System.out.println("Set size: " + es.size()); // 64
           System.out.println("Set: " + es); // Throws IndexOutOfBoundsException
           throw new AssertionError("Expected exception InvalidObjectException not thrown");
-        } catch (java.io.InvalidObjectException _) { /* OK */ }
+        } catch (java.io.InvalidObjectException expected) { /* OK */ }
     }
 
     private static Object deserialize(byte[] sf) throws Throwable {
       return new ObjectInputStream(
           new ByteArrayInputStream(sf))
< prev index next >