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 - incorrect loop expansion
Summary: incorrect loop expansion
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-02 18:07 UTC by Vladimir Voskresensky
Modified: 2011-05-06 05:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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