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

Bug 336775

Summary: Loading a removal ChangeDescription throws an IllegalValueException
Product: [Modeling] EMF Reporter: Cedric Vidal <c.vidal>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: P3    
Version: 2.6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Testcase
none
Testcase works under EMF 2.7 none

Description Cedric Vidal CLA 2011-02-09 19:00:56 EST
Build Identifier: Eclipse I20100608-0911 with EMF 2.6.0.v20100614-1136

Loading a ChangeDescription describing the removal of an EObject in a bidirectional one to many reference throws an IllegalValueException.


Reproducible: Always
Comment 1 Cedric Vidal CLA 2011-02-09 19:02:56 EST
Created attachment 188638 [details]
Testcase
Comment 2 Ed Merks CLA 2011-02-10 03:58:43 EST
It doesn't do that for me with the 2.7 code base.   It gets to 		assertNotNull(eClass.getEPackage()); which fails because eClass is an unloaded proxy...
Comment 3 Cedric Vidal CLA 2011-02-10 04:27:44 EST
Hi Ed,

Gosh you were fast, thanx. You got me. Indeed, I just tested, it works under EMF 2.7. I should have done that test in the first place. Sorry for the noise ;)

Kind regards,

Cédric

PS: it wasn't the purpose of the test but indeed, the eClass being unloaded is normal ;)
Comment 4 Cedric Vidal CLA 2011-02-10 04:31:05 EST
Created attachment 188662 [details]
Testcase works under EMF 2.7

For the record, I removed the erroneous line in the testcase.