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 197528 - CodeTemplate fore fails
Summary: CodeTemplate fore fails
Status: RESOLVED DUPLICATE of bug 197526
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.0.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 10:09 UTC by mklaehn
Modified: 2011-04-11 14:46 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 mklaehn 2011-04-07 10:09:26 UTC
Product Version         = NetBeans IDE Dev (Build
nbms-and-javadoc-6989-on-20110407) (#86b9d8d2e36f)
  Operating System        = Windows 2000 version 5.0 running on x86
  Java; VM; Vendor        = 1.6.0_24; Java HotSpot(TM) Server VM 19.1-b02; Sun
Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_24-b07
  Java Home               = C:\Programme\Java\jdk1.6.0_24\jre
  System Locale; Encoding = de_DE (nb); Cp1252

Please assume the following method:

    private <T extends java.io.Closeable & java.io.InputStream> int method1(final Iterable<T> iterable) {}

apply CodeTemplate FORE inside the method and you will get:

        for (<any>  object  {
            
        }
        : iterable
        
        
    ) {
   
}

where i extected something like:

    for (T object : iterable) {}

The type of the iteration is missing completly. Beside that i had expected to
work with the type the Iterable is typed with.
Comment 1 Dusan Balek 2011-04-11 14:46:25 UTC
Already fixed in jet-main.

*** This bug has been marked as a duplicate of bug 197526 ***