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 189219 - EL Rename / Find Usages broken for \#{} \${} literals
Summary: EL Rename / Find Usages broken for \#{} \${} literals
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 17:20 UTC by Martin Schovanek
Modified: 2010-08-13 03:06 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 Martin Schovanek 2010-08-04 17:20:13 UTC
[#201008040001, jdk1.6, GF v3.0.1]

to reproduce:
-------------
1) have EL expr. like:
    ${'${'}cart.numberOfItems}<p />
    ${'#{'}cart.numberOfItems}<p />
    \#{cart.numberOfItems}<p />
    \${cart.numberOfItems}<p />
2) Rename / Find Usages for Cart.getNumberOfItems()
ERROR: all these expr. are Literal Expr. but Rename & Find Usages consider the last two as Value Expr. (ignores the \ escaping)
Comment 1 Erno Mononen 2010-08-05 07:30:00 UTC
Reproduced, I think the problem is the '\' escaping is ignored by the EL lexer.
Comment 2 Erno Mononen 2010-08-11 12:14:01 UTC
Working on this now.
Comment 3 Erno Mononen 2010-08-11 14:31:10 UTC
Should be fixed now in 4ca391e40848.
Comment 4 Quality Engineering 2010-08-13 03:06:53 UTC
Integrated into 'main-golden', will be available in build *201008130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4ca391e40848
User: Erno Mononen <emononen@netbeans.org>
Log: #189219 - EL Rename / Find Usages broken for \#{} \${} literals