equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, 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. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8067914 |
26 * @bug 8067914 |
27 * @summary Redunant type cast nodes in AST (follow up from JDK-8043741) |
27 * @summary Redundant type cast nodes in AST (follow up from JDK-8043741) |
28 * @library /tools/lib |
28 * @library /tools/lib |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
30 * jdk.compiler/com.sun.tools.javac.file |
|
31 * jdk.compiler/com.sun.tools.javac.main |
30 * jdk.compiler/com.sun.tools.javac.main |
32 * jdk.jdeps/com.sun.tools.javap |
31 * @build toolbox.ToolBox |
33 * @build ToolBox |
|
34 * @run compile -XD-printsource T8067914.java |
32 * @run compile -XD-printsource T8067914.java |
35 * @run main NukeExtraCast |
33 * @run main NukeExtraCast |
36 */ |
34 */ |
37 |
35 |
38 import java.nio.file.Path; |
36 import java.nio.file.Path; |
39 import java.nio.file.Paths; |
37 import java.nio.file.Paths; |
40 import java.util.List; |
38 import java.util.List; |
|
39 |
|
40 import toolbox.ToolBox; |
41 |
41 |
42 public class NukeExtraCast { |
42 public class NukeExtraCast { |
43 |
43 |
44 public static void main(String[] args) throws Exception { |
44 public static void main(String[] args) throws Exception { |
45 ToolBox tb = new ToolBox(); |
45 ToolBox tb = new ToolBox(); |