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 112742

Summary: Simple return value for methods returning wildcard generic
Product: editor Reporter: Jiri Prox <jiriprox>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152194    

Description Jiri Prox 2007-08-14 14:12:22 UTC
Product Version: NetBeans IDE Dev (Build 070814) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Linux
version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /home/jp159440/.netbeans/dev

The return value of method returning generic with wildcard can be simplified in CC. For example if following case the
return type is said to be "? extends Runnable" for method get(int) but it can be only "Runnable"

List<? extends Runnable> list;
public void neco() {
    list.get(1);
}
        
    }
Comment 1 Martin Balin 2016-07-07 07:27:25 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss