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 189543 - EL refactoring does not support the [] operator for method calls
Summary: EL refactoring does not support the [] operator for method calls
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 11:49 UTC by Erno Mononen
Modified: 2016-07-07 08:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2010-08-16 11:49:51 UTC
In EL you can use both the . or [] operators for method calls / properties, e.g.:

#{foo.bar} 
#{foo["bar"]} 

are equivalent. The latter is not supported by the EL refactoring (find usages, rename) and in fact the EL parser also does not seem to support it for parametrized method calls (even though as per the spec it should). I'm not sure whether supporting it is worth the effort as using the . operator is much more common. If anyone strongly feels that [] should be supported, please raise your voice here.
Comment 1 Erno Mononen 2010-10-12 13:57:00 UTC
Changing to an enhancement, I'm inclined to think this isn't worth implementing. Again, anyone who thinks this would be important, please add a comment here. I've yet to see an app that uses the [] operator for method calls.
Comment 2 Martin Balin 2016-07-07 08:54:12 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss