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 111563 - [pull up method] Pull up refactoring does not handle references in method bodies precisely
Summary: [pull up method] Pull up refactoring does not handle references in method bod...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 108486 108488 133723 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-01 00:39 UTC by kely_garcia
Modified: 2009-11-02 11:18 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 kely_garcia 2007-08-01 00:39:42 UTC
Build ID: Netbeans 6.0 M9 (070502)

Steps To Reproduce:
Pull up method B.m() in the following:
class A {
}

class B extends A {
  void m() { 
    a();
  }
  private void a(){}
}

Yields the following refactored code:
class A {
  void m() { 
    a();
  }
}
class B extends A {
  private void a(){}
}

The compilation error is: "cannot find method a()"
It should have return a warning like: "B.a referenced in one of the moved elements is not accessible from A".
Comment 1 Jan Becicka 2007-10-12 13:00:34 UTC
*** Issue 108488 has been marked as a duplicate of this issue. ***
Comment 2 Jan Becicka 2007-10-12 13:14:48 UTC
*** Issue 108486 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Prox 2008-05-13 09:46:00 UTC
*** Issue 133723 has been marked as a duplicate of this issue. ***
Comment 4 David Strupl 2009-03-31 15:57:18 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 5 Quality Engineering 2009-11-02 11:18:09 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX