[jbosstools-issues] [JBoss JIRA] (ERT-433) Invalid octal escape sequence (\8) causes IllegalArgumentException [EBZ#501790]
Friendly Jira Robot (JIRA)
issues at jboss.org
Wed Oct 5 14:26:00 EDT 2016
Friendly Jira Robot created ERT-433:
---------------------------------------
Summary: Invalid octal escape sequence (\8) causes IllegalArgumentException [EBZ#501790]
Key: ERT-433
URL: https://issues.jboss.org/browse/ERT-433
Project: Eclipse Release Train
Issue Type: Task
Components: JSDT
Reporter: Friendly Jira Robot
Priority: Critical
Created attachment 264269
Stack Trace
Any file containing a string with '\8' or '\9' in it will cause an IllegalArgumentException whenever ASTParser executes on it. This prevents the JavaScript editor from being initialized, preventing normal opening of the file.
'\#' in pre ES5 is used to denote an octal escape sequence, and so \8 and \9 are indeed invalid, but this should be reported as an error in the file.
The error is thrown in org.eclipse.wst.jsdt.core.util.JsStringScanner#scanEscape() and is not caught.
To reproduce: create a new JavaScript file, add the line `var x = "\8"` to it,
and attempt to save the file.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list