On Fri, Jan 9, 2009 at 6:39 AM, kujunguo kujunguo <[email protected]>wrote:

> If I define two property for a component, which have the same name,
> then what's the expected result?
>
> <property name="strProperty">value1</property>
> <property name="strProperty">value2</property>
>
> the runtime value should be value1, value2, Null, or an exception?
> In my test, it's value2, but with a warning: WARNING: Duplicate
> component property name: Component = AComponent Property =
> strProperty.
> Isn't it a bug of Tuscany?  I assumed it should throw an exception.
>

Hi Jun Guo

I think you're right that this should be an error rather than a warning. If
we leave it as a warning the result may not be what the writer of the
composite expected. Please raise a JIRA.

Regards

Simon

Reply via email to