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 - Change Method Parameters: When Used on Super Constructor - Adds Invalid Code to Sub Constructor
Summary: Change Method Parameters: When Used on Super Constructor - Adds Invalid Code ...
Status: RESOLVED DUPLICATE of bug 211913
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-01 21:22 UTC by MackSix
Modified: 2012-05-03 07:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to use for reproduction. (20.39 KB, application/zip)
2012-05-01 21:28 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***