You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/09/17 16:29:54 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler Predicate.java

morten      01/09/17 07:29:54

  Modified:    java/src/org/apache/xalan/xsltc/compiler Predicate.java
  Log:
  Fix for parameter references used within predicates.
  PR:		bugzilla 3405
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.11      +2 -2      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Predicate.java
  
  Index: Predicate.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Predicate.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Predicate.java	2001/08/27 09:07:19	1.10
  +++ Predicate.java	2001/09/17 14:29:54	1.11
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: Predicate.java,v 1.10 2001/08/27 09:07:19 morten Exp $
  + * @(#)$Id: Predicate.java,v 1.11 2001/09/17 14:29:54 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -157,7 +157,7 @@
   
   	// We need explicit type information for reference types - no good!
   	if (texp instanceof ReferenceType) {
  -	    throw new TypeCheckError(this);
  +	    _exp = new CastExpr(_exp, texp = Type.Real);
   	}
   
   	// A result tree fragment should not be cast directly to a number type,
  
  
  

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