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 211914

Summary: Change Method Parameters: When Used on Super Constructor - Adds Invalid Code to Sub Constructor
Product: java Reporter: MackSix
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:
Attachments: Project to use for reproduction.

Description MackSix 2012-05-01 21:22:34 UTC

    
Comment 1 MackSix 2012-05-01 21:27:53 UTC
1) Open Attached project.
2) Open SuperClass.java and put cursor on constructor name "SuperClass()".
3) Right click and choose Refactor>>Change Method Parmeters.
4) Add a String parameter with default value of "hello".
5) Click Refactor.
6) Invalid code "("hello");" is added to sub classes.

Expected: Code "super("hello");" is added to sub classes.

Product Version: NetBeans IDE Dev (Build 201205010400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 2 MackSix 2012-05-01 21:28:11 UTC
Created attachment 118933 [details]
Project to use for reproduction.
Comment 3 Jiri Prox 2012-05-02 09:41:04 UTC
reproducible
Comment 4 Jan Becicka 2012-05-03 07:13:25 UTC

*** This bug has been marked as a duplicate of bug 211913 ***