8020946: TokenType#toString returned null
Reviewed-by: hannesw, lagergren
Contributed-by: james.laskey@oracle.com
--- 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 {