7104618: MessageInfo.java is failing after lexer changes
authormcimadamore
Tue, 25 Oct 2011 15:40:34 +0100
changeset 10817 d91978895fac
parent 10816 ce8a7e9d8882
child 10818 e95eb04c68cc
child 10945 c3c042052bae
7104618: MessageInfo.java is failing after lexer changes Summary: Two langtools regression tests cannot be built due to a bad import statement Reviewed-by: jjg
langtools/test/tools/javac/diags/ArgTypeCompilerFactory.java
--- a/langtools/test/tools/javac/diags/ArgTypeCompilerFactory.java	Mon Oct 24 13:00:30 2011 +0100
+++ b/langtools/test/tools/javac/diags/ArgTypeCompilerFactory.java	Tue Oct 25 15:40:34 2011 +0100
@@ -35,7 +35,7 @@
 import com.sun.tools.javac.file.*;
 import com.sun.tools.javac.main.Main;
 import com.sun.tools.javac.main.JavaCompiler;
-import com.sun.tools.javac.parser.Token;
+import com.sun.tools.javac.parser.Tokens.TokenKind;
 import com.sun.tools.javac.util.*;
 import com.sun.tools.javac.util.AbstractDiagnosticFormatter.SimpleConfiguration;
 import javax.lang.model.SourceVersion;
@@ -319,7 +319,7 @@
             return "modifier";
         if (o instanceof KindName)
             return "symbol kind";
-        if (o instanceof Token)
+        if (o instanceof TokenKind)
             return "token";
         if (o instanceof Symbol)
             return "symbol";