avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/appliance ContextBuilder.java
Date Sun, 13 Apr 2003 01:29:00 GMT
mcconnell    2003/04/12 18:29:00

  Modified:    merlin/assembly/src/java/org/apache/avalon/assembly/appliance
                        ContextBuilder.java
  Log:
  Fixed a bug in the handling of context entries where the context type is an array.
  
  Revision  Changes    Path
  1.7       +3 -3      avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/appliance/ContextBuilder.java
  
  Index: ContextBuilder.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/appliance/ContextBuilder.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ContextBuilder.java	11 Apr 2003 23:47:01 -0000	1.6
  +++ ContextBuilder.java	13 Apr 2003 01:29:00 -0000	1.7
  @@ -343,14 +343,14 @@
                   } else
                   {
                       Object sample = array[0];
  -                    String subtype = type.substring( type.length() - 2 );
  +                    String subtype = type.substring( 0, type.length() - 2 );
                       return objectImplementsType( classloader, sample, subtype );
                   }
               }
           }
   
           //
  -        // otherrwise its a classic object type test
  +        // otherwise its a classic object type test
           //
   
           final Class clazz = value.getClass();
  
  
  

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


Mime
View raw message