diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-31 13:09:18 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-31 13:09:18 +0000 |
commit | bb3e993e62950b7907566d97bdc63c55d0fff38b (patch) | |
tree | 16b7e2106675f615330b7a104b3dbce7aa2f418e /branches/sca-java-1.3.2/modules/implementation-widget/src/main/java | |
parent | bcbd8cb0b78cf576d73a0140476b2996a36e5245 (diff) |
TUSCANY-2501 - raise an error if the user tries to mix annotated and unannotated references in a component. Change the vtests and validation tests to take account of this change.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@690691 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.3.2/modules/implementation-widget/src/main/java')
-rw-r--r-- | branches/sca-java-1.3.2/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/branches/sca-java-1.3.2/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java b/branches/sca-java-1.3.2/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java index eed0d6871b..abe00bac5b 100644 --- a/branches/sca-java-1.3.2/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java +++ b/branches/sca-java-1.3.2/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java @@ -130,8 +130,10 @@ class WidgetImplementationIntrospector { String referenceName = null; String tokens[] = scriptContent.split("="); - tokens = tokens[0].split(" "); - referenceName = tokens[tokens.length -1]; + + // find the string between the quotes + tokens = tokens[1].split("\""); + referenceName = tokens[1]; if(referenceName != null) { reference = assemblyFactory.createReference(); |