langtools/test/tools/javac/tree/JavacTreeScannerTest.java
author vasya
Mon, 14 Dec 2015 20:18:19 +0100
changeset 34752 9c262a013456
parent 30730 d3ce7619db2c
child 40766 5e7d12c4fe70
permissions -rw-r--r--
8145342: Some copyright notices are inconsistently and ill formatted Summary: Adjusted formatting of copyright notices. Reviewed-by: darcy, alundblad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
     1
/*
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 6601
diff changeset
     2
 * Copyright (c) 2010, 2015, 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
 * Utility and test program to check javac's internal TreeScanner class.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    26
 * 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
    27
 * command line args, run program with no args.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    28
 *
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    29
 * <p>
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    30
 * 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
    31
 * will process all java files in the langtools/test directory, thus implicitly
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    32
 * 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
    33
 */
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
 * @test
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    37
 * @bug 6923080
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    38
 * @summary TreeScanner.visitNewClass should scan tree.typeargs
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 6601
diff changeset
    39
 * @modules jdk.compiler/com.sun.tools.javac.api
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 6601
diff changeset
    40
 *          jdk.compiler/com.sun.tools.javac.file
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 6601
diff changeset
    41
 *          jdk.compiler/com.sun.tools.javac.tree
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 6601
diff changeset
    42
 *          jdk.compiler/com.sun.tools.javac.util
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    43
 * @build AbstractTreeScannerTest JavacTreeScannerTest
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    44
 * @run main JavacTreeScannerTest -q -r .
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    45
 */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    46
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    47
import java.io.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    48
import java.lang.reflect.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    49
import java.util.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    50
import javax.tools.*;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    51
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    52
import com.sun.tools.javac.tree.JCTree;
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    53
import com.sun.tools.javac.tree.JCTree.JCCompilationUnit;
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    54
import com.sun.tools.javac.tree.TreeScanner;
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    55
import com.sun.tools.javac.util.List;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    56
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    57
public class JavacTreeScannerTest extends AbstractTreeScannerTest {
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    58
    /**
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    59
     * Main entry point.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    60
     * 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
    61
     * 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
    62
     * 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
    63
     * 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
    64
     * directory to the root test directory.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    65
     */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    66
    public static void main(String... args) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    67
        String testSrc = System.getProperty("test.src");
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    68
        File baseDir = (testSrc == null) ? null : new File(testSrc);
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    69
        boolean ok = new JavacTreeScannerTest().run(baseDir, args);
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    70
        if (!ok) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    71
            if (testSrc != null)  // jtreg mode
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    72
                throw new Error("failed");
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    73
            else
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    74
                System.exit(1);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    75
        }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    76
    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    77
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    78
    int test(JCCompilationUnit tree) {
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    79
        return new ScanTester().test(tree);
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    80
    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    81
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    82
    /**
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    83
     * Main class for testing operation of tree scanner.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    84
     * The set of nodes found by the scanner are compared
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    85
     * against the set of nodes found by reflection.
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    86
     */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    87
    private class ScanTester extends TreeScanner {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    88
        /** Main entry method for the class. */
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    89
        int test(JCCompilationUnit tree) {
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    90
            sourcefile = tree.sourcefile;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    91
            found = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    92
            scan(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    93
            expect = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
    94
            reflectiveScan(tree);
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
    95
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    96
            if (found.equals(expect)) {
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
    97
                //System.err.println(sourcefile.getName() + ": trees compared OK");
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    98
                return found.size();
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
    99
            }
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   100
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   101
            error(sourcefile, "differences found");
4877
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
            if (found.size() != expect.size())
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   104
                error("Size mismatch; found: " + found.size() + ", expected: " + expect.size());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   105
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   106
            Set<JCTree> missing = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   107
            missing.addAll(expect);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   108
            missing.removeAll(found);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   109
            for (JCTree t: missing)
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   110
                error(sourcefile, t, "missing");
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   111
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   112
            Set<JCTree> excess = new HashSet<JCTree>();
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   113
            excess.addAll(found);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   114
            excess.removeAll(expect);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   115
            for (JCTree t: excess)
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   116
                error(sourcefile, t, "unexpected");
6597
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
   117
9367c22c445f 6983239: TreeScanner does not scan default value for method
jjg
parents: 5520
diff changeset
   118
            return 0;
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   119
        }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   120
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   121
        /** Record all tree nodes found by scanner. */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   122
        @Override
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   123
        public void scan(JCTree tree) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   124
            if (tree == null)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   125
                return;
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   126
            //System.err.println("FOUND: " + tree.getTag() + " " + trim(tree, 64));
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   127
            found.add(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   128
            super.scan(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   129
        }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   130
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   131
        /** record all tree nodes found by reflection. */
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   132
        public void reflectiveScan(Object o) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   133
            if (o == null)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   134
                return;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   135
            if (o instanceof JCTree) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   136
                JCTree tree = (JCTree) o;
6601
90c4a1a64217 6985115: tests create too much output
jjg
parents: 6597
diff changeset
   137
                //System.err.println("EXPECT: " + tree.getTag() + " " + trim(tree, 64));
4877
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   138
                expect.add(tree);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   139
                for (Field f: getFields(tree)) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   140
                    try {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   141
                        //System.err.println("FIELD: " + f.getName());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   142
                        reflectiveScan(f.get(tree));
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   143
                    } catch (IllegalAccessException e) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   144
                        error(e.toString());
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   145
                    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   146
                }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   147
            } else if (o instanceof List) {
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   148
                List<?> list = (List<?>) o;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   149
                for (Object item: list)
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   150
                    reflectiveScan(item);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   151
            } else
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   152
                error("unexpected item: " + o);
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   153
        }
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
        JavaFileObject sourcefile;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   156
        Set<JCTree> found;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   157
        Set<JCTree> expect;
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   158
    }
b642d21c9f74 6923080: TreeScanner.visitNewClass should scan tree.typeargs
jjg
parents:
diff changeset
   159
}