Browse Source

Fixed a bug that made inherited TypeFactorys fail.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269157 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
e2cc34fa96
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java

+ 5
- 2
proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java View File

@@ -60,10 +60,13 @@ public class MultiSourceTypeFactory


if( null == factory && null != m_parent ) 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 else
{ {
final Object object = factory.create( name ); final Object object = factory.create( name );


Loading…
Cancel
Save