sboag       02/05/12 19:03:58

  Modified:    java/src/org/apache/xpath/axes WalkerFactory.java
  Log:
  In mightBeProximate, there was a bug that assumed a variable would not be
  be a numeric result.  It is now fixed to assume a number may be a number, 
which
  may cause a small performance penalty.  In the future, it should be possible 
to
  chase this down a bit more to rule out more variables as non-numbers.
  
  Revision  Changes    Path
  1.23      +1 -0      
xml-xalan/java/src/org/apache/xpath/axes/WalkerFactory.java
  
  Index: WalkerFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/axes/WalkerFactory.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- WalkerFactory.java        22 Mar 2002 01:04:43 -0000      1.22
  +++ WalkerFactory.java        13 May 2002 02:03:58 -0000      1.23
  @@ -546,6 +546,7 @@
         switch(predOp)
         {
           case OpCodes.OP_VARIABLE:
  +             return true; // Would need more smarts to tell if this could be 
a number or not!
           case OpCodes.OP_LOCATIONPATH:
             // OK.
             break;
  
  
  

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

Reply via email to