diff options
author | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-27 10:24:41 +0000 |
---|---|---|
committer | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-27 10:24:41 +0000 |
commit | 6bcc94ef5e610abb085097ea59f7ba671c03933b (patch) | |
tree | d7fda9a1b8927f4a78ac5c2f7105b647d30070b2 /sca-java-2.x/trunk/modules/assembly/src | |
parent | e1ac47593af2b7e377aaffe3183d4d29658a6e88 (diff) |
improve pd info for interface contract mapping and fix up failing ASM tests due to previous error message output changes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@979633 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src')
2 files changed, 16 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java index f0f46dd41e..7af12bb7d0 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java @@ -216,6 +216,7 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { source.getName() + " target = " + target.getName()); + audit.appendSeperator(); } return false; } @@ -226,6 +227,7 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { source.getName() + " target = " + target.getName()); + audit.appendSeperator(); } return false; } @@ -236,6 +238,7 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { source.isNonBlocking() + " target = " + target.isNonBlocking()); + audit.appendSeperator(); } return false; } @@ -276,6 +279,7 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { if (!isCompatible(targetOutputType, sourceOutputType, passByValue, audit)) { if (audit != null){ audit.append(" output types"); + audit.appendSeperator(); } return false; } @@ -283,6 +287,7 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { if (sourceInputType.size() != targetInputType.size()) { if (audit != null){ audit.append("different number of input types"); + audit.appendSeperator(); } return false; } @@ -292,6 +297,7 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { if (!isCompatible(sourceInputType.get(i), targetInputType.get(i), passByValue, audit)) { if (audit != null){ audit.append(" input types"); + audit.appendSeperator(); } return false; } @@ -313,6 +319,7 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { if (!found) { if (audit != null){ audit.append("Fault types incompatible"); + audit.appendSeperator(); } return false; } @@ -377,8 +384,10 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { .isRemotable()) { if (!silent) { audit.append("Remotable settings do not match: "+ source + "," + target); // TODO see if serialization is sufficient + audit.appendSeperator(); throw new IncompatibleInterfaceContractException( "Remotable settings do not match", source, target); + } else { return false; } diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/Audit.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/Audit.java index 0830860409..343d369fdb 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/Audit.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/util/Audit.java @@ -25,13 +25,19 @@ package org.apache.tuscany.sca.interfacedef.util; * */ public class Audit { + + public static final String seperator = "|||"; private StringBuffer buf; public Audit() { this.buf = new StringBuffer(); } public void append(String str) { - buf.append("||| " + str); + buf.append(str); + } + + public void appendSeperator() { + buf.append(seperator); } public String toString() { return buf.toString(); |