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 161207

Summary: [67cat] GMore likely trigger for generation of constructors
Product: java Reporter: dynamite <dynamite>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description dynamite 2009-03-26 00:11:21 UTC
[ BUILD # : 200903250219 ]
[ JDK VERSION : 1.6.* ]

Today I fell across NetBeans ability to generate constructors for me.
 E.g.

public SomeClass(String name, int age) {
    this.name = name;
    this.age = age;
}

Cool I thought, but the it didn't work the next time I tried and I
wondered why.  It turns out that the trigger doesn't work if I had
already the public keyword first.  This is a shame as most
constructors are public or private and so this is the scenario when
they will most likely fall across the existence of this helpful
generator.
Comment 1 Jan Pokorsky 2009-03-27 11:25:58 UTC
editor's code generators belong to java/editror. Reassigning