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 255057

Summary: Cannot push down element from class containing interface
Product: java Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2015-09-07 13:08:30 UTC
The Push down refactoring always shows warning when pushing from class containing interface

Steps to reproduce:
1) have a class


public class SuperBaseClass  {
    
    int aaa;
        
    interface InnerInterface {
        
    }    
    
}

2) have class SubClas extending SuperBaseClass
3) call push down on aaa

-> warning 'aaa already exists in SuperBaseClass.' is shown


Product Version: NetBeans IDE Dev (Build 201509070002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.19.0-15-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/tester/.netbeans/dev
Cache directory: /home/tester/.cache/netbeans/dev