< prev index next >

test/langtools/tools/javac/tree/JavacTreeScannerTest.java

Print this page

        

*** 45,60 **** --- 45,62 ---- */ import java.io.*; import java.lang.reflect.*; import java.util.*; + import javax.tools.*; import com.sun.tools.javac.tree.JCTree; import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; import com.sun.tools.javac.tree.TreeScanner; import com.sun.tools.javac.util.List; + import com.sun.tools.javac.util.Pair; public class JavacTreeScannerTest extends AbstractTreeScannerTest { /** * Main entry point. * If test.src is set, program runs in jtreg mode, and will throw an Error
*** 146,155 **** --- 148,159 ---- } } else if (o instanceof List) { List<?> list = (List<?>) o; for (Object item: list) reflectiveScan(item); + } else if (o instanceof Pair) { + return; } else error("unexpected item: " + o); } JavaFileObject sourcefile;
< prev index next >