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

Bug 347132

Summary: [mwe2] auto-inject overrides explicit properties
Product: [Modeling] EMFT Reporter: Knut Wannheden <knut.wannheden>
Component: MWEAssignee: Project Inbox <emft-mwe-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0Flags: sebastian.zarnekow: indigo+
Target Milestone: SR2   
Hardware: All   
OS: All   
Whiteboard:

Description Knut Wannheden CLA 2011-05-25 06:55:56 EDT
I have an MWE2 workflow where I've defined a top-level variable. The variable's name matches the name of an auto-injected workflow component's property. But as the property is being explicitly set I would expect this explicit setting to take precedence over the auto-injected value.

E.g.

module foo.Foo

var bar = "bar"

Workflow {

  component = foo.FooComponent auto-inject {
    bar = ""
  }

}

When executed the property "bar" of FooComponent will be set to "bar".
Comment 1 Sebastian Zarnekow CLA 2011-06-01 05:46:33 EDT
I can confirm that auto-inject does not work correctly.
Comment 2 Sebastian Zarnekow CLA 2011-08-25 10:55:17 EDT
Pushed to master.