changeset 19631:5a165897932b

8020946: TokenType#toString returned null Reviewed-by: hannesw, lagergren Contributed-by: james.laskey@oracle.com
author jlaskey
date Fri, 23 Aug 2013 09:56:25 -0300
parents 99f53f31008e
children c9d704ad422e
files nashorn/src/jdk/nashorn/internal/parser/TokenType.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {