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.
Created attachment 118932 [details] Project to use for reproduction. 1) Open up attached project. 2) Open up SuperClass.java. 3) Put cursor on value "99.456". Right click>>Refactor>>Introduce Parameter. Choose Refactor. 4) Observer the 3 subclasses have the invalid code "(99.456);" added. Expected: "super(99.456);" added to subclasses. 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)
reproducible
Looks like generator issue
*** Bug 211914 has been marked as a duplicate of this bug. ***
http://hg.netbeans.org/main-silver/rev/f46f632046d2 http://hg.netbeans.org/main-silver/rev/23608fed631a
Integrated into 'main-golden', will be available in build *201205250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f46f632046d2 User: Jan Lahoda <jlahoda@netbeans.org> Log: #211913: rewriting inside of an synthetic tree needs to un-synthetize the tree.
The subclasses are not updated with a call to super to pass in the parameter. Was that the intention?
Now it is working. I checked "replace all occurrences" and it started working. It works now without checking that that option now. I deleted userdir and cachedir and tried again and it still works. I don't know why it didn't work the first couple of times I tried it.