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 197526 - CodeTemplate fore working unexpectedly
Summary: CodeTemplate fore working unexpectedly
Status: RESOLVED FIXED
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:
: 197527 197528 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-07 09:59 UTC by mklaehn
Modified: 2011-04-12 08:44 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 09:59:38 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 Object> java.util.Map<Integer, T> method3(final Iterable<T> iterable) {
    }

apply CodeTemplate FORE

the Result will be:

for (Object object : iterable) {}

which would be okay if the Iterable was not typed. In the typed case i would expect:

for (T object : iterable) {}
Comment 1 Dusan Balek 2011-04-11 12:53:31 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/3787fa075931
Comment 2 Dusan Balek 2011-04-11 14:13:04 UTC
*** Bug 197527 has been marked as a duplicate of this bug. ***
Comment 3 Dusan Balek 2011-04-11 14:46:25 UTC
*** Bug 197528 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2011-04-12 08:44:40 UTC
Integrated into 'main-golden', will be available in build *201104120401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3787fa075931
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #197526: CodeTemplate fore working unexpectedly - fixed.