zongaro     2003/07/22 09:22:40

  Modified:    java/src/org/apache/xalan/xsltc/compiler Predicate.java
  Log:
  Applying patch from Igor Hersht ([EMAIL PROTECTED]) for Bugzilla bug 18821.
  At some point in the recent past, Predicate started trying to optimize filter
  expressions with positional predicates, but the receiving code in FilterExpr
  was always incorrect.  The fixes to FilterExpr and related code aren't so
  straightforward, so the easiest thing to do for now is to disable the
  broken optimization for FilterExpr objects.
  
  Revision  Changes    Path
  1.29      +3 -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.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- Predicate.java    1 Apr 2003 21:09:00 -0000       1.28
  +++ Predicate.java    22 Jul 2003 16:22:39 -0000      1.29
  @@ -279,6 +279,8 @@
                        _canOptimize = false;
                    else if (fexp instanceof ParentLocationPath)
                        _canOptimize = false;
  +                 else if (fexp instanceof FilterParentPath)
  +                     _canOptimize = false;
                    else if (fexp instanceof UnionPathExpr)
                        _canOptimize = false;
                    else if (_exp.hasPositionCall() && _exp.hasLastCall())
  
  
  

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

Reply via email to