--- a/langtools/test/tools/javac/api/6437999/T6437999.java Wed Oct 29 18:01:22 2014 -0700
+++ b/langtools/test/tools/javac/api/6437999/T6437999.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
@@ -86,6 +86,8 @@
throw new AssertionError("Error in UTF-8 mode");
}
public static void main(String... args) throws IOException {
- new T6437999().test(args);
+ try (T6437999 t = new T6437999()) {
+ t.test(args);
+ }
}
}