Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358106

Summary: JPQL completion proposal exception
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Pascal Filion <pascal.filion>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 3.0   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
stack trace none

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