8020946: TokenType#toString returned null
authorjlaskey
Fri, 23 Aug 2013 09:56:25 -0300
changeset 19631 5a165897932b
parent 19630 99f53f31008e
child 19632 c9d704ad422e
8020946: TokenType#toString returned null Reviewed-by: hannesw, lagergren Contributed-by: james.laskey@oracle.com
nashorn/src/jdk/nashorn/internal/parser/TokenType.java
--- a/nashorn/src/jdk/nashorn/internal/parser/TokenType.java	Fri Aug 23 14:16:16 2013 +0200
+++ b/nashorn/src/jdk/nashorn/internal/parser/TokenType.java	Fri Aug 23 09:56:25 2013 -0300
@@ -284,7 +284,7 @@
 
     @Override
     public String toString() {
-        return name;
+        return getNameOrType();
     }
 
     static {