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 148751

Summary: Provide change type hint when there are incompatible generic type
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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>'