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.
Summary: | [67cat] Quick Fix for "Local variable hides a field" picks wrong identifier to rename | ||
---|---|---|---|
Product: | java | Reporter: | swpalmer <swpalmer> |
Component: | Editor | Assignee: | Max Sauer <msauer> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sustaining |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
swpalmer
2009-06-19 16:02:04 UTC
While I reproduced this *many* times in a row before filing the bug, as soon as I tried again after reporting the bug, it worked as expected. So this may be difficult to reproduce - buit trust me it happened. I was actually going through a file applying many quick-fixes (mostly adding Overrides annotations) and then when I came to this issue it failed in the manner described. Note also that the fix that is applied renames the *local* variable, so the text for the fix "Rename the field" is still wrong. I've corrected the label. In case the first issue occurs again, please reopen this one with a sample source. Thanks. --- http://hg.netbeans.org/jet-main/rev/e0ae7009cf37 Integrated into 'main-golden', will be available in build *200906230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e0ae7009cf37 User: Max Sauer <msauer@netbeans.org> Log: #167376: Field hidden by local variable label should reflect situation v. The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/a5b3457a1d7a v in 6.7.1 I cannot reproduce the renaming the wrong variable, it it occurs in 6.7.1 again, please file a new issue, thanks |