ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/type MultiSourceTypeFactory.java Resources.properties
Date Tue, 25 Jun 2002 07:29:25 GMT
adammurdoch    2002/06/25 00:29:25

  Modified:    container/src/java/org/apache/myrmidon/components/type
                        MultiSourceTypeFactory.java Resources.properties
  Log:
  Added more info to error message.
  
  Revision  Changes    Path
  1.19      +4 -2      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java
  
  Index: MultiSourceTypeFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- MultiSourceTypeFactory.java	10 May 2002 01:44:47 -0000	1.18
  +++ MultiSourceTypeFactory.java	25 Jun 2002 07:29:25 -0000	1.19
  @@ -56,7 +56,9 @@
           if( m_type != null && !m_type.isInstance( object ) )
           {
               final String message = REZ.getString( "mismatched-type.error",
  -                                                  name, object.getClass().getName() );
  +                                                  name,
  +                                                  object.getClass().getName(),
  +                                                  m_type.getName() );
               throw new TypeException( message );
           }
   
  
  
  
  1.7       +1 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/type/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/type/Resources.properties,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Resources.properties	9 May 2002 05:09:04 -0000	1.6
  +++ Resources.properties	25 Jun 2002 07:29:25 -0000	1.7
  @@ -5,7 +5,7 @@
   no-instantiate.error=Unable to instantiate ({0}).
   no-mapping.error=Malconfigured factory, no classname for ({0}).
   no-factory.error=Failed to locate factory for {0}.
  -mismatched-type.error=Factory for type {0} created an object of incompatible type {1}.
  +mismatched-type.error=Factory for type "{0}" created an object of incompatible type {1}.
 Was expecting an object of type {2}.
   no-work-interface.error=Role {0} does not specify accessible work interface.
   
   # NamespaceAwareTypeFactory
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message