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 255087 - [Push down] The Override annotation should be removed when pushing down interface
Summary: [Push down] The Override annotation should be removed when pushing down inter...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 10:59 UTC by Jiri Prox
Modified: 2015-09-08 10:59 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 Jiri Prox 2015-09-08 10:59:41 UTC
The Override annotation should be removed when pushing down interface


Steps to reproduce:
1) have a class 

public class Super implements Runnable{

    @Override
    public void run() { 
    }    
    
}

and a class extending this one

2) pull down 'implements Runnable'

-> the method run has still @Override annotation, but it does not override any method. The code is not compilable



Product Version: NetBeans IDE Dev (Build 201509080002)
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: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev