ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer DefaultConfigurer.java
Date Sat, 29 Dec 2001 21:55:07 GMT
donaldp     01/12/29 13:55:07

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer
                        DefaultConfigurer.java
  Log:
  When a ConverterException occurs then fail convertion and configuration and re-wrap and
throw exception
  
  Revision  Changes    Path
  1.15      +6 -1      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java
  
  Index: DefaultConfigurer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DefaultConfigurer.java	29 Dec 2001 21:03:16 -0000	1.14
  +++ DefaultConfigurer.java	29 Dec 2001 21:55:07 -0000	1.15
  @@ -287,13 +287,18 @@
                   getLogger().debug( message, ce );
               }
   
  -            return false;
  +            throw new ConfigurationException( ce.getMessage(), ce );
           }
           catch( final Exception e )
           {
               final String message =
                   REZ.getString( "bad-convert-for-attribute.error", method.getName() );
               throw new ConfigurationException( message, e );
  +        }
  +
  +        if( null == value )
  +        {
  +            return false;
           }
   
           try
  
  
  

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