santiagopg    2002/10/06 04:50:04

  Modified:    java/src/org/apache/xalan/xsltc/compiler Param.java
  Log:
  Set default type of parameters to be reference. The type of a parameter
  cannot be determined statically in XSLT 1.0.
  
  Revision  Changes    Path
  1.21      +2 -5      
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Param.java
  
  Index: Param.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Param.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Param.java        4 Oct 2002 20:00:51 -0000       1.20
  +++ Param.java        6 Oct 2002 11:50:04 -0000       1.21
  @@ -149,19 +149,16 @@
        * element has a body and no 'select' expression.
        */
       public Type typeCheck(SymbolTable stable) throws TypeCheckError {
  -
  -     // Get the type from the select exrepssion...
        if (_select != null) {
            _type = _select.typeCheck(stable); 
            if (_type instanceof ReferenceType == false) {
                _select = new CastExpr(_select, Type.Reference);
            }
        }
  -     // ...or set the type to result tree
        else if (hasContents()) {
            typeCheckContents(stable);
        }
  -     _type = Type.ResultTree;
  +     _type = Type.Reference;
   
        // This element has no type (the parameter does, but the parameter
        // element itself does not).
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to