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 - Simple return value for methods returning wildcard generic
Summary: Simple return value for methods returning wildcard generic
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks: 152194
  Show dependency tree
 
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
Exception Reporter:


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