diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java b/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java index 8d111de5a..f0e5cd2e2 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java @@ -81,7 +81,7 @@ public class MultiSourceTypeFactory if( !m_type.isInstance( object ) ) { - final String message = REZ.getString( "no-factory.error", name, m_type.getName() ); + final String message = REZ.getString( "mismatched-type.error", name, object.getClass().getName() ); throw new TypeException( message ); } diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/Resources.properties b/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/Resources.properties index 3f8c84a85..a84a2069b 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/Resources.properties +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/Resources.properties @@ -1,5 +1,5 @@ no-instantiate.error=Unable to instantiate ({0}). -no-mapping.error=Malconfigured factory, no clasname for ({0}). +no-mapping.error=Malconfigured factory, no classname for ({0}). no-factory.error=Failed to locate factory for {0}. -bad-type.error=Object {0} is not of correct Type ({1}). +mismatched-type.error=Factory for type {0} created an object of incompatible type {1}. no-work-interface.error=Role {0} does not specify accessible work interface.