avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/baxter/src/java/org/apache/excalibur/baxter AbstractMBean.java
Date Thu, 25 Jul 2002 19:23:28 GMT
proyal      2002/07/25 12:23:28

  Modified:    baxter/src/java/org/apache/excalibur/baxter
                        AbstractMBean.java
  Log:
  Be more specific in telling me which droid i was looking for.
  
  Revision  Changes    Path
  1.6       +24 -2     jakarta-avalon-excalibur/baxter/src/java/org/apache/excalibur/baxter/AbstractMBean.java
  
  Index: AbstractMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/baxter/src/java/org/apache/excalibur/baxter/AbstractMBean.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractMBean.java	15 May 2002 10:52:39 -0000	1.5
  +++ AbstractMBean.java	25 Jul 2002 19:23:27 -0000	1.6
  @@ -416,7 +416,29 @@
               }
           }
   
  -        throw new ReflectionException( new NoSuchMethodException( action ) );
  +        throw new ReflectionException(
  +            new NoSuchMethodException( action + paramsToString( params ) ) );
  +    }
  +
  +    private String paramsToString( final String[] params )
  +    {
  +        final StringBuffer sb = new StringBuffer();
  +
  +        sb.append( '(' );
  +
  +        for( int i = 0; i < params.length; i++ )
  +        {
  +            if( i > 0 )
  +            {
  +                sb.append( ',' );
  +            }
  +
  +            sb.append( params[i] );
  +        }
  +
  +        sb.append( ')' );
  +
  +        return sb.toString();
       }
   
       /**
  
  
  

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


Mime
View raw message