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

Bug 439615

Summary: "service:" is broken right after "extract to aird file..."
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: CoreAssignee: Maxime Porhel <maxime.porhel>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: florian.barbin, julien.dupont, maxime.porhel, pierre-charles.david, stephane.thibaudeau
Version: 1.0.0Keywords: triaged
Target Milestone: 2.0.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 438425    
Bug Blocks:    

Description Maxime Porhel CLA 2014-07-15 09:16:07 EDT
+++ This bug was initially created as a clone of Bug #438425 +++

Right after extracting a diagram in a new aird file, java services can not be called anymore.

Steps to reproduce :
1 - import VSM project
2 - launch new runtime
3 - import test project in runtime
4 - open or create diagram on "first" EPackage => each EClass is displayed twice. One mapping uses "service:getEClasses()", the other one uses "[getEClasses()/]" to call a Java service.
5 - save
6 - In model explorer view, right click on diagram and choose "extract to aird file...". Create a new aird file in the same project.
7 - navigate to open the diagram which is now located in the other aird file.
=> Error log has messages explaining the service "getEClasses()" could not be found. The corresponding mappings are not created anymore.
8 - close and open project. The diagram is now OK.

After a bit of debugging I've found out that in ODesignGenericInterpreter.getInterpreter(), a ServiceInterpreter is retrieved. But the "services" map on this ServiceInterpreter is empty.
If this interpreter was null it would be properly created.

See Bug 438425 for comments and detailled information.
Comment 1 Maxime Porhel CLA 2014-07-15 09:41:41 EDT
Cherry picked correction: https://git.eclipse.org/r/#/c/29906/
Comment 2 Maxime Porhel CLA 2014-07-15 12:51:09 EDT
Corrected in commit 3de673038d0e554d05c57f60951091dfb72b4cdc
Comment 3 Pierre-Charles David CLA 2014-10-27 06:51:49 EDT
Available in Sirius 2.0.0.