Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 112742 - Simple return value for methods returning wildcard generic
Simple return value for methods returning wildcard generic
Status: RESOLVED WONTFIX
Product: editor
Classification: Unclassified
Component: Completion & Templates
6.x
All All
: P3 (vote)
: TBD
Assigned To: Dusan Balek
issues@editor
:
Depends on:
Blocks: 152194
  Show dependency treegraph
 
Reported: 2007-08-14 14:12 UTC by Jiri Prox
Modified: 2016-07-07 07:27 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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


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