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 198261

Summary: incorrect loop expansion
Product: java Reporter: Vladimir Voskresensky <vv159170>
Component: SourceAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Voskresensky 2011-05-02 18:07:58 UTC
if in the following function press Tab to expand abbreviation
private void initComponents() {
    java.util.Collection<? extends Component> col;
    fore|
}
=> result is strange itself (i.e. type of loop variable) and incorrectly formatter as well:

private void initComponents() {
    java.util.Collection<? extends Component> col;
    for ( ?  {
        
    }
    extends java.awt.Component elem : col
    
    
) {
   
}
}
Comment 1 Dusan Balek 2011-05-05 12:51:39 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/6c4e5bba8c9f
Comment 2 Quality Engineering 2011-05-06 05:07:18 UTC
Integrated into 'main-golden', will be available in build *201105060000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6c4e5bba8c9f
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #198261: incorrect loop expansion - fixed.