This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 181603 - Invalid "illegal escape character" warning
Summary: Invalid "illegal escape character" warning
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: Other Linux
: P3 normal (vote)
Assignee: issues@editor
URL:
Keywords: SIMPLEFIX, USABILITY
Depends on:
Blocks:
 
Reported: 2010-03-05 18:53 UTC by PEJO89
Modified: 2010-03-08 06:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PEJO89 2010-03-05 18:53:03 UTC
The line:

    indexOfBegin = lineToParse.indexOf("\\begin\{");

is being underlined with the warning "illegal escape character".

\\ and \{ are valid and my program works as expected if I run it.
Comment 1 Vitezslav Stejskal 2010-03-08 06:17:48 UTC
(In reply to comment #0)
> \\ and \{ are valid 

AFAIK \{ is not a valid escape sequence according to the Java Language Specification, please see details on http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#101089