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 205248

Summary: Restrict code completion hints legal types
Product: javaee Reporter: arungupta <arungupta>
Component: EJBAssignee: Martin Fousek <marfous>
Status: RESOLVED WONTFIX    
Severity: normal CC: pjiricka
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description arungupta 2011-11-17 17:04:16 UTC
A Java EE 6 project has a stateless bean CustomerSessionBean. Injecting it in a Servlet as:

@EJB Cu

and hit Ctrl+Space. This should show only the types can come here instead of the complete list.
Comment 1 Martin Fousek 2011-11-21 06:03:31 UTC
Thanks for reporting. I can take a look on that if it's doable for NB72. There works common java editor CC so actually there would be needed (probably new) API for filtering the CC, I will speak with guys from the editor.

BTW, you can also use action ALT+Insert (Insert code action) and choose 'Call Enterprise Bean' for injecting the bean into the servlet.
Comment 2 Martin Balin 2016-07-07 08:53:36 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