Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 148751 - Provide change type hint when there are incompatible generic type
Provide change type hint when there are incompatible generic type
Status: NEW
Product: java
Classification: Unclassified
Component: Hints
6.x
All All
: P3 (vote)
: TBD
Assigned To: Svata Dedic
issues@java
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-30 14:48 UTC by Jiri Prox
Modified: 2013-09-02 14:19 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 2008-09-30 14:48:04 UTC
Product Version: NetBeans IDE Dev (Build 20080929031756)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)

The hint proposing change in generic type may by useful when there are incompatible generic types in the assignment.

Let's have a code:
List<Integer> ss = new LinkedList<String>();

now there is provided hint to change List<Integer> to LinkedList<String>, but the correct code can be also 'List<String>'


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