avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon/merlin/activation/impl/src/java/org/apache/avalon/activation/impl DefaultComponentFactory.java
Date Tue, 23 Mar 2004 23:34:36 GMT
mcconnell    2004/03/23 15:34:36

  Modified:    merlin/activation/impl/src/java/org/apache/avalon/activation/impl
                        DefaultComponentFactory.java
  Log:
  Improve the exception report concerning multiple constructor ambiguity.
  
  Revision  Changes    Path
  1.11      +7 -2      avalon/merlin/activation/impl/src/java/org/apache/avalon/activation/impl/DefaultComponentFactory.java
  
  Index: DefaultComponentFactory.java
  ===================================================================
  RCS file: /home/cvs/avalon/merlin/activation/impl/src/java/org/apache/avalon/activation/impl/DefaultComponentFactory.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DefaultComponentFactory.java	17 Mar 2004 10:30:07 -0000	1.10
  +++ DefaultComponentFactory.java	23 Mar 2004 23:34:35 -0000	1.11
  @@ -553,7 +553,12 @@
               catch( NoSuchMethodException e )
               {
                   final String error =
  -                  "Multiple constructor ambiguity.";
  +                  "Multiple constructor ambiguity in the component model "
  +                  + m_model
  +                  + ". The component class [" + clazz.getName() 
  +                  + "] declares "
  +                  + constructors.length
  +                  + " public constructors.";
                   throw new LifecycleException( error );
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message