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 198808

Summary: Code completion for EL - missing array indicator
Product: javaee Reporter: Vladimir Riha <vriha>
Component: JSPAssignee: Martin Fousek <marfous>
Status: RESOLVED FIXED    
Severity: normal CC: pjiricka
Priority: P4    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

Description Vladimir Riha 2011-05-23 11:27:17 UTC
Please look at the attached screenshot, in older NB 6.9.1, items like requestScope were offered with brackets "[]" indicating that it is an array. In NB7, there are no brackets in list of offered items and also these brackets aren't completed.

Steps to reproduce: Create new JavaWeb/Web application project, JavaEE6 and Glassfish 3.1 used. Try CC in default index.jsp

Product Version: NetBeans IDE Dev (Build 201105230400)
Java: 1.7.0-ea; Java HotSpot(TM) Client VM 21.0-b12
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 Vladimir Riha 2011-05-23 11:27:33 UTC
Created attachment 108453 [details]
screenshot
Comment 2 Petr Jiricka 2011-10-06 11:52:51 UTC
Marku, can you please investigate?
Comment 3 Marek Fukala 2011-10-06 14:49:22 UTC
I do not see a strong reason why the brackets should be completed. You may use the dot notation (preferably) so you won't them. I agree that the map object could be somehow marked in the completion list though.
Comment 4 Martin Fousek 2014-01-16 14:35:20 UTC
Vlado, I'm closing that as fixed in 7.4 where I added the type of all implicit objects. In case of requestScope, param and so one there is added Map type according to the specification. The [] brackets looks to me pretty non-standard in comparison to another editors.