[jbosstools-issues] [JBoss JIRA] (ERT-433) Invalid octal escape sequence (\8) causes IllegalArgumentException [EBZ#501790]
Victor Rubezhny (JIRA)
issues at jboss.org
Wed Oct 5 14:56:00 EDT 2016
[ https://issues.jboss.org/browse/ERT-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Victor Rubezhny updated ERT-433:
--------------------------------
Story Points: 2
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list