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 223244 - No code completion in empty query
Summary: No code completion in empty query
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-04 11:35 UTC by Jiri Skrivanek
Modified: 2012-12-07 11:56 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 Jiri Skrivanek 2012-12-04 11:35:51 UTC
There is no code completion in empty query. To reproduce:

- create web project with GlassFish server
- create entity classes from database for jdbc/sample
- open Customer.java
- insert new line behind @NamedQueries({ and paste empty named query definition there: @NamedQuery(name = "Customer.find1", query = ""),
- place cursor at empty query and invoke code completion (Ctrl+Space)
- it shows "No suggestions"
- type space and invoke code completion (Ctrl+Space) again
- now it shows completion items correctly

Product Version: NetBeans IDE Dev (Build 201212040001)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Sergey Petrov 2012-12-06 19:49:45 UTC
http://hg.netbeans.org/main-silver/rev/964a1278cce6
Comment 2 Quality Engineering 2012-12-07 02:41:10 UTC
Integrated into 'main-golden', will be available in build *201212070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/964a1278cce6
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #223244 do not filter out zero length attributes