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 108479

Summary: [pull up field] PullUp a field initialized with new A().f yields comp. error
Product: java Reporter: kely_garcia <kely_garcia>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description kely_garcia 2007-06-29 00:23:40 UTC
Build ID: Netbeans 6.0 M9 (070502)

Steps To Reproduce:
Pull up field g on the following:

public class A {
    private boolean f;
    class B extends C {
        boolean g=new A().f;
    }
}
class C {
    private boolean f;
}

Yields the following refactored code:

public class A {
    private boolean f;
    class B extends C {
    }
}
class C {
    private boolean f;
    boolean g = new test_bugs.A().f;
}

The compilation error is: "f has private access in A"
Comment 1 David Strupl 2009-03-31 15:55:35 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:17:36 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX