[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...

Gavin King gavin.king at jboss.com
Sat Oct 7 14:22:56 EDT 2006


  User: gavin   
  Date: 06/10/07 14:22:56

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  temp fix for a limitation
  
  Revision  Changes    Path
  1.175     +2 -1      jboss-seam/src/main/org/jboss/seam/Component.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Component.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
  retrieving revision 1.174
  retrieving revision 1.175
  diff -u -b -r1.174 -r1.175
  --- Component.java	5 Oct 2006 19:43:59 -0000	1.174
  +++ Component.java	7 Oct 2006 18:22:56 -0000	1.175
  @@ -107,7 +107,7 @@
    *
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
    * @author Gavin King
  - * @version $Revision: 1.174 $
  + * @version $Revision: 1.175 $
    */
   @Scope(ScopeType.APPLICATION)
   public class Component
  @@ -1460,6 +1460,7 @@
            {
               if ( !component.isInstance(result) )
               {
  +               if ( component.hasUnwrapMethod() ) return result; ///best way???
                  throw new IllegalArgumentException( "value of context variable is not an instance of the component bound to the context variable: " + name );
               }
               result = component.unwrap(result);
  
  
  



More information about the jboss-cvs-commits mailing list