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 111565 - [pull up method] Pull up method yields comp. error "attempting to assing weaker access privileges"
Summary: [pull up method] Pull up method yields comp. error "attempting to assing weak...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-01 00:48 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:48:50 UTC
Build ID: Netbeans 6.0 M9 (070502)

Steps To Reproduce:
Pull up method B.m() and set 'Make Abstract' in the following:
class A{}
class B extends A{
  public void m() {
  }
}
class B1 extends A{
  private void m() {
  }
}

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

The compilation error is: "B1.m() cannot override A.m(); attempting to assign weaker access privileges; was public"
Comment 1 David Strupl 2009-03-31 15:57:30 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 2 Quality Engineering 2009-11-02 11:18:14 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX