Please use the Apache issue tracking system for new NetBeans 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 QA Contact: issues <>
Priority: P3    
Version: 6.x   
Target Milestone: TBD   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Report:
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() {
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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo