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

Bug 359585

Summary: Missing bundle key in JPQL validation
Product: [WebTools] Dali JPA Tools Reporter: Neil Hauge <neil.hauge>
Component: JPAAssignee: Pascal Filion <pascal.filion>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt
Version: 3.0.1Flags: neil.hauge: review+
Target Milestone: 3.0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Fix for invalid syntax in .properties file none

Description Neil Hauge CLA 2011-09-30 12:08:29 EDT
I am seeing an exception when backspacing at the following location in the Details view on an Named Query in an ORM XML Entity:

Select o from Owner o JOIN o.pets[cursor]

I get:

java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key COLLECTION_VALUED_PATH_EXPRESSION_NOT_RESOLVABLE
    at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
    at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    at org.eclipse.jpt.jpa.ui.internal.jpql.JpaJpqlContentProposalProvider.buildMessage(JpaJpqlContentProposalProvider.java:322)
    at org.eclipse.jpt.jpa.ui.internal.jpql.JpaJpqlContentProposalProvider.validate(JpaJpqlContentProposalProvider.java:584)
    at org.eclipse.jpt.jpa.ui.internal.jpql.JpaJpqlContentProposalProvider.access$10(JpaJpqlContentProposalProvider.java:567)
    at org.eclipse.jpt.jpa.ui.internal.jpql.JpaJpqlContentProposalProvider$6.modifyText(JpaJpqlContentProposalProvider.java:330)
Comment 1 Pascal Filion CLA 2011-09-30 14:41:08 EDT
Created attachment 204407 [details]
Fix for invalid syntax in .properties file

The properties file is converted from Hermes' ResourceBundle class, the key described in the bug had a space after the closing doule quote:
COLLECTION_VALUED_PATH_EXPRESSION_NOT_RESOLVABLE" ,     "
which resulted in not being converted in a find/replace operation.
Comment 2 Neil Hauge CLA 2011-09-30 14:48:40 EDT
Please check in to 3.0.x stream.
Comment 3 Pascal Filion CLA 2011-09-30 15:37:21 EDT
Checked in the fix into 3.0.x stream
Comment 4 Jolene Moffitt CLA 2011-10-13 09:41:04 EDT
Verified in Build M-3.3.2-20111010170035 

Verified you add the a query and then backspace without error.  See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.2