From a4de2ee340c4f38376e6de60834a2d291b6296c5 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 27 Jul 2010 12:53:46 +0000 Subject: Correct the policy subject that is checked during "appliesTo" processing. Fix for ASM_10002 regression. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@979685 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/builder/impl/PolicyAppliesToBuilderImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/builder/src/main/java/org') diff --git a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAppliesToBuilderImpl.java b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAppliesToBuilderImpl.java index c0da5ad33b..c9cd6b36d0 100644 --- a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAppliesToBuilderImpl.java +++ b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAppliesToBuilderImpl.java @@ -96,7 +96,7 @@ public class PolicyAppliesToBuilderImpl extends PolicyAttachmentBuilderImpl { for (ComponentService componentService : component.getServices()) { for (Endpoint ep : componentService.getEndpoints()) { - checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)ep, ep.getPolicySets()); + checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)ep.getService(), ep.getPolicySets()); if (ep.getBinding() instanceof PolicySubject) { checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)ep.getBinding(), ep.getPolicySets()); } @@ -105,7 +105,7 @@ public class PolicyAppliesToBuilderImpl extends PolicyAttachmentBuilderImpl { for (ComponentReference componentReference : component.getReferences()) { for (EndpointReference epr : componentReference.getEndpointReferences()) { - checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)epr, epr.getPolicySets()); + checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)epr.getReference(), epr.getPolicySets()); if (epr.getBinding() instanceof PolicySubject) { checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)epr.getBinding(), epr.getPolicySets()); } -- cgit v1.2.3