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 145350 - Generated constructor does not assign first field
Summary: Generated constructor does not assign first field
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 20:35 UTC by Miloslav Metelka
Modified: 2010-01-11 02:18 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 Miloslav Metelka 2008-08-27 20:35:48 UTC
Build 080825.
Have a class

public class CC<T> {

    C|

    T a;

    T b;

}

Invoked completion suggests to generate constructor that assigns field "b" only. If "C" gets removed (or when you place
caret below the fields) then it correctly offers constructor with both "a" and "b".
Comment 1 Miloslav Metelka 2010-01-11 02:18:55 UTC
Sorry, it meant to be an enhancement.