--- a/langtools/test/tools/javac/generics/inference/7086601/T7086601b.java Wed Oct 29 12:09:17 2014 +0100
+++ b/langtools/test/tools/javac/generics/inference/7086601/T7086601b.java Wed Oct 29 17:25:23 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -86,18 +86,19 @@
//create default shared JavaCompiler - reused across multiple compilations
JavaCompiler comp = ToolProvider.getSystemJavaCompiler();
- StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null);
+ try (StandardJavaFileManager fm = comp.getStandardFileManager(null, null, null)) {
- for (TypeKind a1 : TypeKind.values()) {
- for (TypeKind a2 : TypeKind.values()) {
- for (TypeKind a3 : TypeKind.values()) {
- for (MethodCallKind mck : MethodCallKind.values()) {
- new T7086601b(a1, a2, a3, mck).run(comp, fm);
+ for (TypeKind a1 : TypeKind.values()) {
+ for (TypeKind a2 : TypeKind.values()) {
+ for (TypeKind a3 : TypeKind.values()) {
+ for (MethodCallKind mck : MethodCallKind.values()) {
+ new T7086601b(a1, a2, a3, mck).run(comp, fm);
+ }
}
}
}
+ System.out.println("Total check executed: " + checkCount);
}
- System.out.println("Total check executed: " + checkCount);
}
TypeKind a1;