--- a/langtools/test/tools/javac/api/6733837/T6733837.java Wed Oct 29 18:01:22 2014 -0700
+++ b/langtools/test/tools/javac/api/6733837/T6733837.java Wed Oct 29 19:07:34 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
@@ -31,6 +31,7 @@
* @run main T6733837
*/
+import java.io.IOException;
import java.io.StringWriter;
import java.io.PrintWriter;
import java.net.URI;
@@ -43,8 +44,10 @@
public class T6733837 extends ToolTester {
- public static void main(String... args) {
- new T6733837().exec();
+ public static void main(String... args) throws IOException {
+ try (T6733837 t = new T6733837()) {
+ t.exec();
+ }
}
public void exec() {