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 242824 - [Change method parameter] No warning if changing overriding method
Summary: [Change method parameter] No warning if changing overriding method
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-12 10:34 UTC by Jiri Prox
Modified: 2014-10-16 11:39 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 2014-03-12 10:34:58 UTC
There is no warning when changing signature of the overriding method. This method is changed also in superclass/interface but not in other classes extending this super class


Example:
1) have a class A with method m
2) have a classes B1 and B2 both overriding A
3) in class B1 call change method parameter on m and add one parameter
-> the A.m and B1.m are changed 
but B2.m is not, which causes syntax error (if @Overrides annotation was present, or A is interface)


Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.0
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.0
Comment 1 Ralph Ruijs 2014-10-16 11:39:39 UTC
Change Method Parameters is performed from the base-class