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

Summary: Invalid "illegal escape character" warning
Product: editor Reporter: PEJO89
Component: Hints & AnnotationsAssignee: issues@editor <issues>
Severity: normal Keywords: SIMPLEFIX, USABILITY
Priority: P3    
Version: 6.x   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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