提交 21ea200c 编写于 作者: M mcimadamore

8013638: Few policy tests are failing in Lambda nightly

Summary: BridgeHarness test is leaving files open
Reviewed-by: ksrini
上级 0cf33533
......@@ -40,6 +40,7 @@ import com.sun.tools.javac.code.Symbol.ClassSymbol;
import com.sun.tools.javac.util.List;
import java.io.File;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
......@@ -137,8 +138,8 @@ public class BridgeHarness {
* annotation in the bridge map
*/
protected void checkBridges(JavaFileObject jfo) {
try {
ClassFile cf = ClassFile.read(jfo.openInputStream());
try (InputStream is = jfo.openInputStream()) {
ClassFile cf = ClassFile.read(is);
System.err.println("checking: " + cf.getName());
List<Bridge> bridgeList = bridgesMap.get(cf.getName());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册