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

Bug 313440

Summary: NullPointerException when invalid default value literal of EENum type
Product: [Modeling] EMF Reporter: Stefan Winkler <stefan>
Component: cdo.coreAssignee: Project Inbox <emf.cdo-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://bugs.eclipse.org/bugs/show_bug.cgi?id=306998
Whiteboard:

Description Stefan Winkler CLA 2010-05-18 16:50:47 EDT
see Bug 306998

the Testcase of this bug fails with the MemStore as well. 

Maybe it would be a good idea to check for invalid default literals on the client side or at some other more central place. Either that or the same bug has to be fixed in the MEMStore as well.

I've disabled the TestCase for the MemStore for now and added a FIXME comment.
Comment 1 Stefan Winkler CLA 2010-05-18 17:00:12 EDT
argh. One shouldn't open bugs hastily before analyzing the real error.
The MemStore handles invalid literals by silently assigning NULL, which is ok. It's just not what the testcase exepected.

So the behavior is ok. Removed the FIXME comment from the code - the skipConfigs remain in place - and resolving this bug as worksforme.
Sorry for the mess :-(
Comment 2 Eike Stepper CLA 2010-06-29 04:44:24 EDT
Closing