Community
Participate
Working Groups
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 { }
I'm not able to reproduce this in 3.8 or 4.2. Still have that stack trace around?
Created attachment 203751 [details] stack trace Not sure if this is the same one, but managed to reproduce after several tries
Pascal...can you investigate?
Fix checked in
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.
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