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/type MultiSourceTypeFactory.java
Date Tue, 12 Jun 2001 13:42:48 GMT
donaldp     01/06/12 06:42:48

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/type
                        MultiSourceTypeFactory.java
  Log:
  Fixed a bug that made inherited TypeFactorys fail.
  
  Revision  Changes    Path
  1.2       +5 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java
  
  Index: MultiSourceTypeFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MultiSourceTypeFactory.java	2001/06/03 06:10:05	1.1
  +++ MultiSourceTypeFactory.java	2001/06/12 13:42:47	1.2
  @@ -60,10 +60,13 @@
   
           if( null == factory && null != m_parent ) 
           {
  -            m_parent.getTypeFactory( name );
  +            factory = m_parent.getTypeFactory( name );
           }
   
  -        if( null == factory ) return null;
  +        if( null == factory ) 
  +        {
  +            throw new TypeException( "Failed to locate factory for '" + name + "'" );
  +        }
           else
           {
               final Object object = factory.create( name );
  
  
  

Mime
View raw message