[jbosstools-issues] [JBoss JIRA] (ERT-433) Invalid octal escape sequence (\8) causes IllegalArgumentException [EBZ#501790]
Victor Rubezhny (JIRA)
issues at jboss.org
Mon Nov 28 19:48:00 EST 2016
[ https://issues.jboss.org/browse/ERT-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Victor Rubezhny resolved ERT-433.
---------------------------------
Fix Version/s: Neon.2 (4.6)
Resolution: Done
> 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
> Fix For: Neon.2 (4.6)
>
>
> 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
(v7.2.3#72005)
More information about the jbosstools-issues
mailing list