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.
When applying "Extract Interface" on a class with bounded type parameters, where the bound is a type from a different package, no import statement is added for that type in the new source file created for the extracted interface. Example: import java.io.Closeable; public class Test<C extends Closeable> { public C foo() { return null; } } Then Extract Interface generates public interface NewInterface<C extends Closeable> { C foo(); } which is missing the import statement for java.io.Closeable. Product Version: NetBeans IDE 6.0 (Build 200711261600) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
reproducoble
moving opened issues from TM <= 6.1 to TM=Dev
fixed http://hg.netbeans.org/main/rev/038b594d652a
Integrated into 'main-golden', will be available in build *200811141401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/038b594d652a User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #125021: fixing import of copied type parameter bounderies
Verified in 6.7.