diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-07 21:59:44 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-07 21:59:44 +0000 |
commit | 10923a6b39453ce7862540fb406adeee778ab545 (patch) | |
tree | 5d1a1e583954214c1a7c5a4961a0e615789e72df /java/sca/modules/policy-xml | |
parent | 316800505584f2b1645d8d1ea5ce21f87a3785e9 (diff) |
Test if the excluded intents is declared but not resolved
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@791989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/policy-xml')
-rw-r--r-- | java/sca/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/sca/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java b/java/sca/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java index d87921dbbf..95db1b7ecb 100644 --- a/java/sca/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java +++ b/java/sca/modules/policy-xml/src/main/java/org/apache/tuscany/sca/policy/xml/IntentProcessor.java @@ -363,7 +363,7 @@ public class IntentProcessor extends BaseStAXArtifactProcessor implements StAXAr for (Intent excludedIntent : policyIntent.getExcludedIntents()) { if (excludedIntent.isUnresolved()) { Intent resolvedExcludedIntent = resolver.resolveModel(Intent.class, excludedIntent); - if (!resolvedExcludedIntent.isUnresolved()) { + if (!resolvedExcludedIntent.isUnresolved() || resolvedExcludedIntent != excludedIntent) { excludedIntents.add(resolvedExcludedIntent); } else { error("ExcludedIntentNotFound", resolver, excludedIntent, policyIntent); |