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.
Here is some code that NB 6.9 did not complain about: Code: <c:if test="${message eq '{fieldrequired}'}"> <c:set var="fieldrequired" value="true" /> </c:if> Netbeans 7 complains and says Code: Encountered "\"" at line 1, column 14. Was expecting one of: <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <STRING_LITERAL> ... "true" ... "false" ... "null" ... "(" ... "!" ... "not" ... "empty" ... "-" ... <IDENTIFIER> ...
Reproduced with 7.0.1 build 201107102202. Marku, could this be caused by your changes in EL? Thanks. Not a stopper for 7.0.1.
(In reply to comment #1) > Reproduced with 7.0.1 build 201107102202. Marku, could this be caused by your > changes in EL? Thanks. This is an issue of XhtmlELLexer which hasn't been changed for a long time. It closes the EL token on first right curly bracket regardless it's in a string literal. However from some reason there wasn't an error in <=6.9
This is not JSP specific problem - the same issue is with facelets.
fixed for both jsp and xhtml-el lexers in web-main#e0e9f0b6bc99
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e0e9f0b6bc99 User: Marek Fukala <mfukala@netbeans.org> Log: #199467 - JSP EL parsing breaks on encountering a string literal that contains '}'
verified Product Version: NetBeans IDE 7.1 RC2 (Build 201111302200) Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10 System: Linux version 3.0.0-13-generic-pae running on i386; UTF-8; en_US (nb)