You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@locus.apache.org on 2000/08/01 06:40:18 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/objects XNodeSet.java

sboag       00/07/31 21:40:18

  Modified:    java/src/org/apache/xpath/objects XNodeSet.java
  Log:
  Fixed bug with result fragments compare to string.
  
  Revision  Changes    Path
  1.2       +3 -1      xml-xalan/java/src/org/apache/xpath/objects/XNodeSet.java
  
  Index: XNodeSet.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XNodeSet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XNodeSet.java	2000/07/05 14:48:06	1.1
  +++ XNodeSet.java	2000/08/01 04:40:18	1.2
  @@ -340,8 +340,10 @@
       else if(XObject.CLASS_RTREEFRAG == type)
       {
         // hmmm... 
  +      // Try first to treat it as a number, so that numeric 
  +      // comparisons can be done with it.  I suspect this is bogus...
         double num2 = obj2.num();
  -      if(num2 != Double.NaN)
  +      if(!Double.isNaN(num2))
         {
           NodeIterator list1 = nodeset();
           Node node;