Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358106 - JPQL completion proposal exception
Summary: JPQL completion proposal exception
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Pascal Filion CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 08:36 EDT by Karen Butzke CLA
Modified: 2011-11-16 14:05 EST (History)
2 users (show)

See Also:


Attachments
stack trace (6.13 KB, text/plain)
2011-09-21 08:01 EDT, Karen Butzke CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2011-09-19 08:36:12 EDT
Start with the following entity with a NamedQuery. Place the cursor before the @NamedQuery and begin typing @NamedQueries, use control->space to to complete the annotation. The attached JPQL completion proposal exception is logged. You do still get Java completion proposals for @NamedQueries.
 
@Entity
@NamedQuery(name="asdf")
public class Employee {
}
Comment 1 Neil Hauge CLA 2011-09-20 23:55:01 EDT
I'm not able to reproduce this in 3.8 or 4.2.  Still have that stack trace around?
Comment 2 Karen Butzke CLA 2011-09-21 08:01:02 EDT
Created attachment 203751 [details]
stack trace

Not sure if this is the same one, but managed to reproduce after several tries
Comment 3 Neil Hauge CLA 2011-10-03 16:53:55 EDT
Pascal...can you investigate?
Comment 4 Pascal Filion CLA 2011-10-07 12:18:40 EDT
Fix checked in
Comment 5 Pascal Filion CLA 2011-10-07 12:23:01 EDT
The problem was the returned value can either be an array of annotations or a single annotation, even though @NamedQueries.value() is an array of @NamedQuery.
Comment 6 Jolene Moffitt CLA 2011-11-16 14:05:35 EST
Verified in Build S-3.1.0RC1-20111111225339 

Verified no errors occur when you use code completion for @NamedQueries.  See the link to view test steps for verification.
http://wiki.eclipse.org/Dali_3.1_M3