提交 711b9b37 编写于 作者: K khazra

7162385: TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing again

Summary: Enable finding "foo1.jar"
Reviewed-by: chegar
上级 92fc23bf
...@@ -62,7 +62,8 @@ public class B4957695 { ...@@ -62,7 +62,8 @@ public class B4957695 {
readOneRequest(s.getInputStream()); readOneRequest(s.getInputStream());
try (OutputStreamWriter ow = try (OutputStreamWriter ow =
new OutputStreamWriter((s.getOutputStream()))) { new OutputStreamWriter((s.getOutputStream()))) {
FileInputStream fin = new FileInputStream("foo1.jar"); FileInputStream fin = new FileInputStream(new File(
System.getProperty("test.src", "."), "foo1.jar"));
int length = fin.available(); int length = fin.available();
byte[] b = new byte[length-10]; byte[] b = new byte[length-10];
fin.read(b, 0, length-10); fin.read(b, 0, length-10);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册