langtools/test/tools/javac/tree/JavacTreeScannerTest.java
author jjg
Thu, 09 Sep 2010 13:31:28 -0700
changeset 6597 9367c22c445f
parent 5520 langtools/test/tools/javac/tree/TreeScannerTest.java@86e4b9a9da40
child 6601 90c4a1a64217
permissions -rw-r--r--
6983239: TreeScanner does not scan default value for method 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);
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    92
            if (found.equals(expect)) {
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    93
                System.err.println(found.size() + " trees compared OK");
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    94
                return found.size();
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    95
            }
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    96
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    97
            error("Differences found for " + tree.sourcefile.getName());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    98
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    99
            if (found.size() != expect.size())
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   100
                error("Size mismatch; found: " + found.size() + ", expected: " + expect.size());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   101
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   102
            Set<JCTree> missing = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   103
            missing.addAll(expect);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   104
            missing.removeAll(found);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   105
            for (JCTree t: missing)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   106
                error(tree.sourcefile, t, "missing");
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   107
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   108
            Set<JCTree> excess = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   109
            excess.addAll(found);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   110
            excess.removeAll(expect);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   111
            for (JCTree t: excess)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   112
                error(tree.sourcefile, t, "unexpected");
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
   113
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
   114
            return 0;
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   115
        }
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
        /** Record all tree nodes found by scanner. */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   118
        @Override
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   119
        public void scan(JCTree tree) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   120
            if (tree == null)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   121
                return;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   122
            System.err.println("FOUND: " + tree.getTag() + " " + trim(tree, 64));
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   123
            found.add(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   124
            super.scan(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   125
        }
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
        /** record all tree nodes found by reflection. */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   128
        public void reflectiveScan(Object o) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   129
            if (o == null)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   130
                return;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   131
            if (o instanceof JCTree) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   132
                JCTree tree = (JCTree) o;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   133
                System.err.println("EXPECT: " + tree.getTag() + " " + trim(tree, 64));
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   134
                expect.add(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   135
                for (Field f: getFields(tree)) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   136
                    try {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   137
                        //System.err.println("FIELD: " + f.getName());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   138
                        reflectiveScan(f.get(tree));
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   139
                    } catch (IllegalAccessException e) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   140
                        error(e.toString());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   141
                    }
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
            } else if (o instanceof List) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   144
                List<?> list = (List<?>) o;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   145
                for (Object item: list)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   146
                    reflectiveScan(item);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   147
            } else
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   148
                error("unexpected item: " + o);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   149
        }
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
        JavaFileObject sourcefile;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   152
        Set<JCTree> found;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   153
        Set<JCTree> expect;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   154
    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   155
}