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

Bug 344907

Summary: Operation bodies included in documentation
Product: [Modeling] MDT.UML2 Reporter: Kenn Hussey <Kenn.Hussey>
Component: CoreAssignee: Kenn Hussey <Kenn.Hussey>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Flags: Kenn.Hussey: indigo+
Version: 3.1.0   
Target Milestone: RC1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Kenn Hussey CLA 2011-05-05 21:15:56 EDT
The contents of body expressions are included in operation documentation even if/when the option to process operation bodies is chosen in the UML import wizard. Inspection of the source code uncovered a Boolean expression which references an intended constant:

if (specification != null && !(eModelElement instanceof EOperation && options != null
        && OPTION__PROCESS.equals(options.get(OPERATION_BODY)))) {
    addDocumentation(eModelElement, specification.stringValue());
}

The OPTION__OPERATION_BODIES constant should clearly be referenced here instead of OPERATION_BODY.
Comment 1 Kenn Hussey CLA 2011-05-05 22:05:48 EDT
The fix has been committed to CVS.
Comment 2 Kenn Hussey CLA 2011-05-17 23:01:52 EDT
The fix is available in the RC1 build.
Comment 3 Kenn Hussey CLA 2011-05-31 10:34:28 EDT
Closing for Indigo release.