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: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to