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 - [67cat] GMore likely trigger for generation of constructors
Summary: [67cat] GMore likely trigger for generation of constructors
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 00:11 UTC by dynamite
Modified: 2010-01-11 02:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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