Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359585 - Missing bundle key in JPQL validation
Summary: Missing bundle key in JPQL validation
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0.2   Edit
Assignee: Pascal Filion CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 12:08 EDT by Neil Hauge CLA
Modified: 2011-10-13 09:41 EDT (History)
1 user (show)

See Also:
neil.hauge: review+


Attachments
Fix for invalid syntax in .properties file (1.18 KB, patch)
2011-09-30 14:41 EDT, Pascal Filion CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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