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 189201 - EL Refactoring incorrectly recognize getFoo(int x) as bean's property
Summary: EL Refactoring incorrectly recognize getFoo(int x) as bean's property
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 13:04 UTC by Martin Schovanek
Modified: 2010-08-06 05:54 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 13:04:01 UTC
[#201008040001, jdk1.6, GF v3.0.1]

to reproduce:
-------------
1) have a Managed Beans with following methods:
  public int getFoo() {...);
  public int getFoo(int x) {...};
2) have a JSF page with foo property reference
3) rename the 'public int getFoo(int x)'
ERROR: the foo reference is renamed.

The same issue in Find Usages.
Comment 1 Erno Mononen 2010-08-05 12:31:21 UTC
Reproduced, working on a fix.
Comment 2 Erno Mononen 2010-08-06 05:54:16 UTC
Fixed in 93e62626f53b. There are still a few cases with overloaded methods and with methods taking var args (though basic var arg cases should be handled already), but let's address them in separate issues.