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/11/01 10:27:24 UTC

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

morten      01/11/01 01:27:24

  Modified:    java/src/org/apache/xalan/xsltc/compiler Predicate.java
  Log:
  Added a fix for predicates that test on node values, where the value to
  test agains is stored in a variable or predicate.
  PR:		bugzilla 3501
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.15      +2 -1      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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Predicate.java	2001/09/20 14:35:15	1.14
  +++ Predicate.java	2001/11/01 09:27:24	1.15
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: Predicate.java,v 1.14 2001/09/20 14:35:15 morten Exp $
  + * @(#)$Id: Predicate.java,v 1.15 2001/11/01 09:27:24 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -392,6 +392,7 @@
   	}
   	else if (isNodeValueTest() && (getParent() instanceof Step)) {
   	    _value.translate(classGen, methodGen);
  +	    il.append(new CHECKCAST(cpg.addClass(STRING_CLASS)));
   	    il.append(new PUSH(cpg, ((EqualityExpr)_exp).getOp()));
   	}
   	else {
  
  
  

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