test/runtime/8003720/VictimClassLoader.java
Print this page
*** 70,81 ****
throw new Error(ex);
}
}
static byte[] readFully(java.io.InputStream in, int len) throws java.io.IOException {
! // Warning here:
! return sun.misc.IOUtils.readFully(in, len, true);
}
public void finalize() {
Test8003720.println("Goodbye from " + this);
}
--- 70,83 ----
throw new Error(ex);
}
}
static byte[] readFully(java.io.InputStream in, int len) throws java.io.IOException {
! byte[] b = in.readAllBytes();
! if (len != -1 && b.length != len)
! throw new java.io.IOException("Expected:" + len + ", actual:" + b.length);
! return b;
}
public void finalize() {
Test8003720.println("Goodbye from " + this);
}