[jbosstools-issues] [JBoss JIRA] (ERT-433) Invalid octal escape sequence (\8) causes IllegalArgumentException [EBZ#501790]

Gorkem Ercan (JIRA) issues at jboss.org
Wed Nov 9 08:15:00 EST 2016


     [ https://issues.jboss.org/browse/ERT-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gorkem Ercan updated ERT-433:
-----------------------------
    Sprint: devex #123 November 2016  (was: 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.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list