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/interfaces/type AdaptingTypeFactory.java ClassLoaderTypeFactory.java DefaultTypeFactory.java Resources.properties
Date Thu, 23 May 2002 09:18:41 GMT
adammurdoch    02/05/23 02:18:41

  Modified:    container/src/java/org/apache/myrmidon/interfaces/type
                        AdaptingTypeFactory.java
                        ClassLoaderTypeFactory.java DefaultTypeFactory.java
                        Resources.properties
  Log:
  Add extra info to error message.
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/AdaptingTypeFactory.java
  
  Index: AdaptingTypeFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/AdaptingTypeFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AdaptingTypeFactory.java	18 May 2002 04:07:08 -0000	1.1
  +++ AdaptingTypeFactory.java	23 May 2002 09:18:40 -0000	1.2
  @@ -18,7 +18,7 @@
    * type factories in an adaptor.
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.1 $ $Date: 2002/05/18 04:07:08 $
  + * @version $Revision: 1.2 $ $Date: 2002/05/23 09:18:40 $
    */
   public class AdaptingTypeFactory
       implements TypeFactory
  @@ -78,7 +78,7 @@
           }
           catch( final Exception e )
           {
  -            final String message = REZ.getString( "no-instantiate.error", name );
  +            final String message = REZ.getString( "no-instantiate.error", name, m_adaptorClass.getName()
);
               throw new TypeException( message, e );
           }
       }
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/ClassLoaderTypeFactory.java
  
  Index: ClassLoaderTypeFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/ClassLoaderTypeFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassLoaderTypeFactory.java	22 May 2002 07:36:22 -0000	1.1
  +++ ClassLoaderTypeFactory.java	23 May 2002 09:18:40 -0000	1.2
  @@ -17,7 +17,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.1 $ $Date: 2002/05/22 07:36:22 $
  + * @version $Revision: 1.2 $ $Date: 2002/05/23 09:18:40 $
    */
   public class ClassLoaderTypeFactory
       implements TypeFactory
  @@ -94,7 +94,7 @@
           }
           catch( final Exception e )
           {
  -            final String message = REZ.getString( "no-instantiate.error", name );
  +            final String message = REZ.getString( "no-instantiate.error", name, className
);
               throw new TypeException( message, e );
           }
       }
  
  
  
  1.15      +2 -2      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/DefaultTypeFactory.java
  
  Index: DefaultTypeFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/DefaultTypeFactory.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DefaultTypeFactory.java	22 May 2002 07:36:23 -0000	1.14
  +++ DefaultTypeFactory.java	23 May 2002 09:18:40 -0000	1.15
  @@ -16,7 +16,7 @@
    * from the same classloader.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version CVS $Revision: 1.14 $ $Date: 2002/05/22 07:36:23 $
  + * @version CVS $Revision: 1.15 $ $Date: 2002/05/23 09:18:40 $
    */
   public class DefaultTypeFactory
       implements TypeFactory
  @@ -82,7 +82,7 @@
           }
           catch( final Exception e )
           {
  -            final String message = REZ.getString( "no-instantiate.error", name );
  +            final String message = REZ.getString( "no-instantiate.error", name, clazz.getName()
);
               throw new TypeException( message, e );
           }
       }
  
  
  
  1.3       +1 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/type/Resources.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Resources.properties	18 May 2002 04:07:08 -0000	1.2
  +++ Resources.properties	23 May 2002 09:18:40 -0000	1.3
  @@ -1,4 +1,4 @@
  -no-instantiate.error=Could not create an object of type "{0}".
  +no-instantiate.error=Could not create an object of type "{0}" using class "{1}".
   no-mapping.error=Unknown type "{0}".
   too-many-constructors.error=Multiple matching constructors for adaptor class "{0}".
   no-constructors.error=No matching constructors for adaptor class "{0}".
  
  
  

--
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