langtools/test/tools/javac/tree/JavacTreeScannerTest.java
author jjg
Thu, 16 Sep 2010 09:57:37 -0700
changeset 6601 90c4a1a64217
parent 6597 9367c22c445f
child 30730 d3ce7619db2c
permissions -rw-r--r--
6985115: tests create too much output Reviewed-by: mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     1
/*
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 4877
diff changeset
     2
 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     4
 *
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     8
 *
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    13
 * accompanied this code).
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    14
 *
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    18
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 4877
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 4877
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 4877
diff changeset
    21
 * questions.
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    22
 */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    23
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    24
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    25
/**
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    26
 * Utility and test program to check javac's internal TreeScanner class.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    27
 * The program can be run standalone, or as a jtreg test.  For info on
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    28
 * command line args, run program with no args.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    29
 *
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    30
 * <p>
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    31
 * jtreg: Note that by using the -r switch in the test description below, this test
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    32
 * will process all java files in the langtools/test directory, thus implicitly
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    33
 * covering any new language features that may be tested in this test suite.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    34
 */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    35
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    36
/*
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    37
 * @test
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    38
 * @bug 6923080
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    39
 * @summary TreeScanner.visitNewClass should scan tree.typeargs
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    40
 * @build AbstractTreeScannerTest JavacTreeScannerTest
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    41
 * @run main JavacTreeScannerTest -q -r .
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    42
 */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    43
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    44
import java.io.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    45
import java.lang.reflect.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    46
import java.util.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    47
import javax.tools.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    48
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    49
import com.sun.tools.javac.tree.JCTree;
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    50
import com.sun.tools.javac.tree.JCTree.JCCompilationUnit;
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    51
import com.sun.tools.javac.tree.TreeScanner;
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    52
import com.sun.tools.javac.util.List;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    53
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    54
public class JavacTreeScannerTest extends AbstractTreeScannerTest {
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    55
    /**
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    56
     * Main entry point.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    57
     * If test.src is set, program runs in jtreg mode, and will throw an Error
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    58
     * if any errors arise, otherwise System.exit will be used. In jtreg mode,
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    59
     * the default base directory for file args is the value of ${test.src}.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    60
     * In jtreg mode, the -r option can be given to change the default base
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    61
     * directory to the root test directory.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    62
     */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    63
    public static void main(String... args) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    64
        String testSrc = System.getProperty("test.src");
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    65
        File baseDir = (testSrc == null) ? null : new File(testSrc);
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    66
        boolean ok = new JavacTreeScannerTest().run(baseDir, args);
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    67
        if (!ok) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    68
            if (testSrc != null)  // jtreg mode
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    69
                throw new Error("failed");
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    70
            else
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    71
                System.exit(1);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    72
        }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    73
    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    74
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    75
    int test(JCCompilationUnit tree) {
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    76
        return new ScanTester().test(tree);
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    77
    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    78
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    79
    /**
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    80
     * Main class for testing operation of tree scanner.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    81
     * The set of nodes found by the scanner are compared
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    82
     * against the set of nodes found by reflection.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    83
     */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    84
    private class ScanTester extends TreeScanner {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    85
        /** Main entry method for the class. */
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    86
        int test(JCCompilationUnit tree) {
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    87
            sourcefile = tree.sourcefile;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    88
            found = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    89
            scan(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    90
            expect = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    91
            reflectiveScan(tree);
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
    92
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    93
            if (found.equals(expect)) {
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
    94
                //System.err.println(sourcefile.getName() + ": trees compared OK");
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    95
                return found.size();
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    96
            }
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    97
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
    98
            error(sourcefile, "differences found");
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    99
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   100
            if (found.size() != expect.size())
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   101
                error("Size mismatch; found: " + found.size() + ", expected: " + expect.size());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   102
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   103
            Set<JCTree> missing = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   104
            missing.addAll(expect);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   105
            missing.removeAll(found);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   106
            for (JCTree t: missing)
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   107
                error(sourcefile, t, "missing");
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   108
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   109
            Set<JCTree> excess = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   110
            excess.addAll(found);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   111
            excess.removeAll(expect);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   112
            for (JCTree t: excess)
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   113
                error(sourcefile, t, "unexpected");
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
   114
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
   115
            return 0;
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   116
        }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   117
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   118
        /** Record all tree nodes found by scanner. */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   119
        @Override
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   120
        public void scan(JCTree tree) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   121
            if (tree == null)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   122
                return;
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   123
            //System.err.println("FOUND: " + tree.getTag() + " " + trim(tree, 64));
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   124
            found.add(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   125
            super.scan(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   126
        }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   127
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   128
        /** record all tree nodes found by reflection. */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   129
        public void reflectiveScan(Object o) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   130
            if (o == null)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   131
                return;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   132
            if (o instanceof JCTree) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   133
                JCTree tree = (JCTree) o;
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   134
                //System.err.println("EXPECT: " + tree.getTag() + " " + trim(tree, 64));
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   135
                expect.add(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   136
                for (Field f: getFields(tree)) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   137
                    try {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   138
                        //System.err.println("FIELD: " + f.getName());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   139
                        reflectiveScan(f.get(tree));
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   140
                    } catch (IllegalAccessException e) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   141
                        error(e.toString());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   142
                    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   143
                }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   144
            } else if (o instanceof List) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   145
                List<?> list = (List<?>) o;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   146
                for (Object item: list)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   147
                    reflectiveScan(item);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   148
            } else
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   149
                error("unexpected item: " + o);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   150
        }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   151
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   152
        JavaFileObject sourcefile;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   153
        Set<JCTree> found;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   154
        Set<JCTree> expect;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   155
    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   156
}