< prev index next >

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

Print this page

        

@@ -45,16 +45,18 @@
  */
 
 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,10 +148,12 @@
                 }
             } 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 >