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.
Present in RC1 (200711131200), in beta2 this works. When using Insert Code -> Constructor in class that is inherited from other class that have some other than default constructor - the generated code does not contain call to superconstructor so it is not compilable. This works in beta2. Example: public class MyClass1 { public MyClass1(String s){} } public class MyClass2 extends MyClass1 { //try to insert constructor here //the generated code will be //public MyClass2(String s) { //} }
Sorry, but I do not think this qualifies as P1.
Caused by fix of issue #103642. Hopefully fixed now. Tests for both this issue and issue #103642 are pending. Checking in VeryPretty.java; /cvs/java/source/src/org/netbeans/modules/java/source/pretty/VeryPretty.java,v <-- VeryPretty.java new revision: 1.73; previous revision: 1.72 done
*** Issue 122625 has been marked as a duplicate of this issue. ***
Can we expect that this fix being integrated in release 60? We don't have currently any workaround for it and it breaks our code generation. JF.
Petre, can you verify the fix? Thanks
Ok now.
The fix has been ported into the release60_fixes branch. Checking in VeryPretty.java; /cvs/java/source/src/org/netbeans/modules/java/source/pretty/VeryPretty.java,v <-- VeryPretty.java new revision: 1.71.4.1; previous revision: 1.71 done
Verified in 6.0 with patch1. --- Product Version: NetBeans IDE 6.0 (Build 200711261600) Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b05 System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) Userdir: /home/maxa/.netbeans/6.0