< prev index next >

test/java/io/readBytes/MemoryLeak.java

Print this page
rev 10985 : [mq]: 8061549

*** 38,48 **** s.close(); for (int i = 0; i < 10000; i++) { try { s.read(bytes); throw new Error("expected IOException"); ! } catch (IOException _) { /* OK */ } catch (OutOfMemoryError oome) { System.out.printf("Got OutOfMemoryError, i=%d%n", i); throw oome; } --- 38,48 ---- s.close(); for (int i = 0; i < 10000; i++) { try { s.read(bytes); throw new Error("expected IOException"); ! } catch (IOException ignore) { /* OK */ } catch (OutOfMemoryError oome) { System.out.printf("Got OutOfMemoryError, i=%d%n", i); throw oome; }
< prev index next >