--- a/langtools/test/tools/javac/api/6421111/T6421111.java Wed Oct 29 18:01:22 2014 -0700
+++ b/langtools/test/tools/javac/api/6421111/T6421111.java Wed Oct 29 19:07:34 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 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
@@ -33,6 +33,7 @@
*/
import java.io.File;
+import java.io.IOException;
import java.net.URI;
import java.util.Arrays;
import java.util.Collections;
@@ -101,8 +102,10 @@
return SourceVersion.latest();
}
}
- public static void main(String... args) {
- new T6421111().test(args);
+ public static void main(String... args) throws IOException {
+ try (T6421111 t = new T6421111()) {
+ t.test(args);
+ }
}
public static AssertionError error(String format, Object... args) {
return new AssertionError(String.format(format, args));