]
Victor Rubezhny updated ERT-433:
--------------------------------
Sprint: devex #122 October 2016
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
Assignee: Victor Rubezhny
Priority: Critical
Labels: General, bzira
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.