equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
30 * @build ToolTester |
30 * @build ToolTester |
31 * @compile T6418694.java |
31 * @compile T6418694.java |
32 * @run main T6418694 |
32 * @run main T6418694 |
33 */ |
33 */ |
34 |
34 |
|
35 import java.io.IOException; |
35 import javax.tools.StandardLocation; |
36 import javax.tools.StandardLocation; |
36 |
37 |
37 public class T6418694 extends ToolTester { |
38 public class T6418694 extends ToolTester { |
38 void test(String... args) { |
39 void test(String... args) { |
39 for (StandardLocation loc : StandardLocation.values()) { |
40 for (StandardLocation loc : StandardLocation.values()) { |
50 throw new AssertionError("Extra location " + loc); |
51 throw new AssertionError("Extra location " + loc); |
51 break; |
52 break; |
52 } |
53 } |
53 } |
54 } |
54 } |
55 } |
55 public static void main(String... args) { |
56 public static void main(String... args) throws IOException { |
56 new T6418694().test(args); |
57 try (T6418694 t = new T6418694()) { |
|
58 t.test(args); |
|
59 } |
57 } |
60 } |
58 } |
61 } |