diff options
author | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-17 13:41:01 +0000 |
---|---|---|
committer | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-17 13:41:01 +0000 |
commit | 46ecdd6f96ec8b42556b3c6d715f8af12c0cda73 (patch) | |
tree | 4335a1812a5107abf8ab369b6ec9d8bed1325b43 /sca-java-2.x/trunk/modules | |
parent | de83f83c99bf0f91df3a00846d20f1ed4e27afe3 (diff) |
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@945147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
2 files changed, 3 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessor.java b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessor.java index 0b8923d46c..52a3fbd89a 100644 --- a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessor.java +++ b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ConstructorProcessor.java @@ -54,7 +54,7 @@ public class ConstructorProcessor extends BaseJavaClassVisitor { type.getConstructors().put(constructor, definition); if (constructor.getAnnotation(org.oasisopen.sca.annotation.Constructor.class) != null) { if (found) { - throw new DuplicateConstructorException("Multiple constructors marked with @Constructor", constructor); + throw new DuplicateConstructorException("[JCI50002] Multiple constructors marked with @Constructor", constructor); } found = true; type.setConstructor(definition); diff --git a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java index fc7c87a624..1deb4e824d 100644 --- a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java +++ b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.java @@ -255,7 +255,7 @@ public class HeuristicPojoProcessor extends BaseJavaClassVisitor { // no definition, heuristically determine constructor Constructor[] constructors = clazz.getConstructors(); if (constructors.length == 0) { - throw new NoConstructorException("No public constructor for class"); + throw new NoConstructorException("[JCI50001] No public constructor for class"); } else if (constructors.length == 1) { // Only one constructor, take it constructor = constructors[0]; @@ -266,7 +266,7 @@ public class HeuristicPojoProcessor extends BaseJavaClassVisitor { selected = ctor; for (Constructor<T> ctor2 : constructors) { if (selected != ctor2 && allArgsAnnotated(ctor2)) { - throw new InvalidConstructorException("Multiple annotated constructors"); + throw new InvalidConstructorException("[JCI50005] Multiple annotated constructors"); } } } |