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 270827 - Code completion doesn't display correctly with extended genertics
Summary: Code completion doesn't display correctly with extended genertics
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-07 16:16 UTC by hipdragon
Modified: 2017-06-07 16:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hipdragon 2017-06-07 16:16:50 UTC
Code completion does not display correctly when using a extended object that base is a generic typed. 

This issue can be shown with Primefaces Demo. Download and setup the PrimeFaces Lazy datatable example from https://www.primefaces.org/showcase/ui/data/datatable/lazy.xhtml.

The base example code completion works as expected with the private LazyDataModel<Car> lazyModel;

But if you change it to private LazyCarDataModel lazyModel; and change the associated getter. You'll discover that code completion shows LazyDataModel functions and attributes to autocomplete and not the expected car functions and attributes.