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.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-1995-on-20140809) VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13 OS: Linux User Comments: adithyank: While adding constructor for an inner class through ALT+INSERT Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.editor.codegen.ConstructorGenerator.doGenerateConstructor(ConstructorGenerator.java:220) at org.netbeans.modules.java.editor.codegen.ConstructorGenerator.access$200(ConstructorGenerator.java:90) at org.netbeans.modules.java.editor.codegen.ConstructorGenerator$1.run(ConstructorGenerator.java:204) at org.netbeans.modules.java.editor.codegen.ConstructorGenerator$1.run(ConstructorGenerator.java:202) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:649) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:639)
Created attachment 148624 [details] stacktrace
Created attachment 148637 [details] stacktrace Trying to generate a constructor in a class
The class has an inner class, no pre-existing constructor : https://github.com/ehsavoie/wildfly-core/blob/WFLY-543/controller/src/main/java/org/jboss/as/controller/BootErrorCollector.java
Marked as Regression -> P2. It used to work in 8.0 FYI: It is not limited to inner classes. Even the constructor of simple classes like cannot be created. (The dialog shows up, you can choose the members, but the concreate creation fails.) ---- package asdf; public class Asdf { String a; } ----
reproducible Dusane, can we fix it to 8.0.1, please?
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/ee8909f072fb
+1 for 8.0.1
verified in dev
Integrated into 'main-silver', will be available in build *201408120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ee8909f072fb User: Dusan Balek <dbalek@netbeans.org> Log: Issue #246371: NullPointerException at org.netbeans.modules.java.editor.codegen.ConstructorGenerator.doGenerateConstructor - fixed.
Integrated into 'release801'. http://hg.netbeans.org/releases/rev/55725b430e78
Integrated into 'releases/release801', will be available in build *201408122300* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/55725b430e78 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #246371: NullPointerException at org.netbeans.modules.java.editor.codegen.ConstructorGenerator.doGenerateConstructor - fixed.
verified in 8.0.1