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

Bug 299281

Summary: [All Diagrams]The ValueSpecificationUtil class provides incorrect behavior for boolean
Product: [Modeling] Papyrus Reporter: Vincent Hémery <vincent.hemery>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 Keywords: plan
Version: 0.7.0   
Target Milestone: M5   
Hardware: PC   
OS: Windows XP   
Whiteboard: Scalability

Description Vincent Hémery CLA 2010-01-11 09:48:08 EST
In plugin org.eclipse.papyrus.umlutils :
The method org.eclipse.papyrus.umlutils.ValueSpecificationUtil.restoreLiteralBoolean(LiteralBoolean, String) is incorrect :
in any case, it ends with 
		specification.setValue(false);
This lead to a bug which prevent assigning the true value.
An else is needed before this instruction.
Comment 1 Emilien Perico CLA 2010-01-11 10:09:55 EST
fixed: change condition in restoreLiteralBoolean