Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324054 - Inconsistent debug/non-debug execution
Summary: Inconsistent debug/non-debug execution
Status: RESOLVED FIXED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 01:28 EDT by Ed Willink CLA
Modified: 2013-04-30 05:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2010-08-31 01:28:09 EDT
In Bug 323878 a problem with incorrect oclIsKindOf execution was reported. The attached repro was not initially reproducible, until the extra information that the repro required execution in Debug mode.

https://bugs.eclipse.org/bugs/attachment.cgi?id=177685 is therefore an execellent, simple repro demonstrating correct execution when the provided launch configuration is Run but incorrect when ruin as Debug.

Some investiogation shows that the heavily overloaded 'Family' is not an issue; the problem persists when names are changed. The dyanamic/static concern is not an issue, since EMF has a dynamicIsInstance for exactly this contingency.

Tracing constructions of XMLResource(URI) reveals that when:

'Run': Family.ecore is read then Family.xmi is read into the ResourceSet that contains Family.ecore, so there is only one Family meta-model.

'Debug': Family.ecore is read into one ResourceSet then Family.xmi is read into a different ResourceSet causing Family.ecore to be read again, giving two copies of the Family meta-model.
Comment 1 Sergey Boyko CLA 2013-04-30 05:53:34 EDT
Inconsistency between debug and non-debug evaluation was corrected by means of Bug 395353. For this item a couple of debugger tests were added to 'org.eclipse.m2m.tests.qvt.oml.ui' plug-in (package 'org.eclipse.m2m.internal.tests.qvt.oml.debugger').

Example from attachment was also included as junit test for debugger evaluation.

Pushed to master for Kepler M7.

Commit ID: fe659277fa06827af3f16823a620c04a1b6768cc