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-phoenix/src/java/org/apache/avalon/phoenix/components/manager SubContext.java
Date Mon, 22 Jul 2002 16:59:18 GMT
proyal      2002/07/22 09:59:18

  Modified:    src/java/org/apache/avalon/phoenix/components/manager
                        SubContext.java
  Log:
  Added warning about requested named subcontext
  from a SystemManger w/null type (prevent error farther
  downstream)
  
  Revision  Changes    Path
  1.2       +5 -0      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/SubContext.java
  
  Index: SubContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/SubContext.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SubContext.java	13 Jul 2002 10:15:13 -0000	1.1
  +++ SubContext.java	22 Jul 2002 16:59:18 -0000	1.2
  @@ -114,6 +114,11 @@
               final String message = "type cannot be null or empty";
               throw new ManagerException( message );
           }
  +        else if( null != name && this.m_type == null )
  +        {
  +            final String message = "cannot request a named subcontext here";
  +            throw new ManagerException( message );
  +        }
   
           // get from list if possible
           final String key = contextKey( name, type );
  
  
  

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